Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/fpc.mk
Show All 21 Lines | |||||
# | # | ||||
.if !defined(_INCLUDE_USES_FPC_MK) | .if !defined(_INCLUDE_USES_FPC_MK) | ||||
FPC_Include_MAINTAINER= acm@FreeBSD.org | FPC_Include_MAINTAINER= acm@FreeBSD.org | ||||
_INCLUDE_USES_FPC_MK= yes | _INCLUDE_USES_FPC_MK= yes | ||||
.if defined(DEFAULT_FPC_VER) | . if defined(DEFAULT_FPC_VER) | ||||
WARNING+= "DEFAULT_FPC_VER is defined, consider using DEFAULT_VERSIONS=fpc=${DEFAULT_FPC_VER} instead" | WARNING+= "DEFAULT_FPC_VER is defined, consider using DEFAULT_VERSIONS=fpc=${DEFAULT_FPC_VER} instead" | ||||
.endif | . endif | ||||
.if ${fpc_ARGS:Nrun:Nbase:Nall} | . if ${fpc_ARGS:Nrun:Nbase:Nall} | ||||
IGNORE= Unknown argument for USES=fpc: ${fpc_ARGS:Nrun:Nbase:Nall} | IGNORE= Unknown argument for USES=fpc: ${fpc_ARGS:Nrun:Nbase:Nall} | ||||
.endif | . endif | ||||
DEFAULT_FPC_VER= ${FPC_DEFAULT} | DEFAULT_FPC_VER= ${FPC_DEFAULT} | ||||
# When adding a version, please keep the comment in | # When adding a version, please keep the comment in | ||||
# Mk/bsd.default-versions.mk in sync. | # Mk/bsd.default-versions.mk in sync. | ||||
FPC_VER= ${DEFAULT_FPC_VER} | FPC_VER= ${DEFAULT_FPC_VER} | ||||
FPC_ARCH= ${ARCH:S/amd64/x86_64/} | FPC_ARCH= ${ARCH:S/amd64/x86_64/} | ||||
.if exists(${LOCALBASE}/bin/fpc) | . if exists(${LOCALBASE}/bin/fpc) | ||||
FPC_CURRENT_VER!= ${LOCALBASE}/bin/fpc -iV | FPC_CURRENT_VER!= ${LOCALBASE}/bin/fpc -iV | ||||
. if ${FPC_CURRENT_VER} != ${FPC_VER} | . if ${FPC_CURRENT_VER} != ${FPC_VER} | ||||
IGNORE= incompatible fpc ${FPC_CURRENT_VER} compiler, please install ${FPC_VER} version | IGNORE= incompatible fpc ${FPC_CURRENT_VER} compiler, please install ${FPC_VER} version | ||||
. endif | . endif | ||||
.endif | . endif | ||||
.if ${ARCH} == "i386" | . if ${ARCH} == "i386" | ||||
PPNAME= ppc386 | PPNAME= ppc386 | ||||
.elif ${ARCH} == "amd64" | . elif ${ARCH} == "amd64" | ||||
PPNAME= ppcx64 | PPNAME= ppcx64 | ||||
.else | . else | ||||
PPNAME= ppc_not_yet_ported | PPNAME= ppc_not_yet_ported | ||||
ONLY_FOR_ARCHS= i386 amd64 | ONLY_FOR_ARCHS= i386 amd64 | ||||
ONLY_FOR_ARCHS_REASON= not yet ported to anything other than i386 and amd64 | ONLY_FOR_ARCHS_REASON= not yet ported to anything other than i386 and amd64 | ||||
.endif | . endif | ||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils \ | BUILD_DEPENDS+= ${LOCALBASE}/bin/as:devel/binutils \ | ||||
${PPNAME}:lang/fpc | ${PPNAME}:lang/fpc | ||||
BUILDNAME= ${FPC_ARCH}-${OPSYS:tl} | BUILDNAME= ${FPC_ARCH}-${OPSYS:tl} | ||||
UNITSDIR= ${LOCALBASE}/lib/fpc/${FPC_VER}/units/${BUILDNAME} | UNITSDIR= ${LOCALBASE}/lib/fpc/${FPC_VER}/units/${BUILDNAME} | ||||
MKINSTDIR= ${LOCALBASE}/lib/fpc/${FPC_VER}/fpmkinst/${BUILDNAME} | MKINSTDIR= ${LOCALBASE}/lib/fpc/${FPC_VER}/fpmkinst/${BUILDNAME} | ||||
_FPC_ALL_UNITS= a52 aspell bfd bzip2 cairo chm dblib dbus dts fastcgi \ | _FPC_ALL_UNITS= a52 aspell bfd bzip2 cairo chm dblib dbus dts fastcgi \ | ||||
fcl-async fcl-base fcl-db fcl-extra fcl-fpcunit fcl-image \ | fcl-async fcl-base fcl-db fcl-extra fcl-fpcunit fcl-image \ | ||||
fcl-js fcl-json fcl-net fcl-passrc fcl-pdf fcl-registry \ | fcl-js fcl-json fcl-net fcl-passrc fcl-pdf fcl-registry \ | ||||
fcl-report fcl-res fcl-sdo fcl-sound fcl-stl fcl-web fcl-xml \ | fcl-report fcl-res fcl-sdo fcl-sound fcl-stl fcl-web fcl-xml \ | ||||
fftw fpindexer fppkg fv gdbint gdbm gnutls gmp googleapi \ | fftw fpindexer fppkg fv gdbint gdbm gnutls gmp googleapi \ | ||||
graph gtk2 hermes httpd22 httpd24 ibase iconvenc imagemagick \ | graph gtk2 hermes httpd22 httpd24 ibase iconvenc imagemagick \ | ||||
ldap libcups libcurl libenet libfontconfig libgd libmagic \ | ldap libcups libcurl libenet libfontconfig libgd libmagic \ | ||||
libmicrohttpd libpng libvlc libxml2 lua mad modplug \ | libmicrohttpd libpng libvlc libxml2 lua mad modplug \ | ||||
mysql ncurses newt numlib odata odbc oggvorbis openal opengl openssl \ | mysql ncurses newt numlib odata odbc oggvorbis openal opengl openssl \ | ||||
oracle pasjpeg pastojs pcap postgres proj4 pthreads pxlib \ | oracle pasjpeg pastojs pcap postgres proj4 pthreads pxlib \ | ||||
regexpr rexx rsvg rtl-console rtl-extra rtl-generics rtl-objpas \ | regexpr rexx rsvg rtl-console rtl-extra rtl-generics rtl-objpas \ | ||||
rtl-unicode sdl sqlite svgalib symbolic syslog tplylib unzip \ | rtl-unicode sdl sqlite svgalib symbolic syslog tplylib unzip \ | ||||
users utmp uuid vcl-compat webidl x11 xforms zlib | users utmp uuid vcl-compat webidl x11 xforms zlib | ||||
.if ${fpc_ARGS:Mbase} | . if ${fpc_ARGS:Mbase} | ||||
USE_FPC= gdbint graph httpd22 httpd24 ibase mysql odbc oracle pasjpeg \ | USE_FPC= gdbint graph httpd22 httpd24 ibase mysql odbc oracle pasjpeg \ | ||||
postgres pthreads regexpr sqlite | postgres pthreads regexpr sqlite | ||||
.endif | . endif | ||||
.if ${fpc_ARGS:Mall} | . if ${fpc_ARGS:Mall} | ||||
USE_FPC= ${_FPC_ALL_UNITS} | USE_FPC= ${_FPC_ALL_UNITS} | ||||
.endif | . endif | ||||
.if defined(USE_FPC) && ${USE_FPC:tl} != "yes" | . if defined(USE_FPC) && ${USE_FPC:tl} != "yes" | ||||
. for UNITS in ${USE_FPC} | . for UNITS in ${USE_FPC} | ||||
. if ${_FPC_ALL_UNITS:M${UNITS}}=="" | . if ${_FPC_ALL_UNITS:M${UNITS}}=="" | ||||
IGNORE= cannot install: unknown FPC unit ${UNITS} | IGNORE= cannot install: unknown FPC unit ${UNITS} | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
.endif | . endif | ||||
# Base units | # Base units | ||||
gdbint_UNIT= devel/fpc-gdbint | gdbint_UNIT= devel/fpc-gdbint | ||||
graph_UNIT= graphics/fpc-graph | graph_UNIT= graphics/fpc-graph | ||||
httpd22_UNIT= www/fpc-httpd22 | httpd22_UNIT= www/fpc-httpd22 | ||||
httpd24_UNIT= www/fpc-httpd24 | httpd24_UNIT= www/fpc-httpd24 | ||||
ibase_UNIT= databases/fpc-ibase | ibase_UNIT= databases/fpc-ibase | ||||
mysql_UNIT= databases/fpc-mysql | mysql_UNIT= databases/fpc-mysql | ||||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
webidl_UNIT= www/fpc-webidl | webidl_UNIT= www/fpc-webidl | ||||
x11_UNIT= x11/fpc-x11 | x11_UNIT= x11/fpc-x11 | ||||
xforms_UNIT= x11-toolkits/fpc-xforms | xforms_UNIT= x11-toolkits/fpc-xforms | ||||
zlib_UNIT= devel/fpc-zlib | zlib_UNIT= devel/fpc-zlib | ||||
.endif | .endif | ||||
.if defined(USE_FPC) | .if defined(USE_FPC) | ||||
. for UNIT in ${USE_FPC} | . for UNIT in ${USE_FPC} | ||||
. if ${_FPC_ALL_UNITS:M${UNIT}} != "" | . if ${_FPC_ALL_UNITS:M${UNIT}} != "" | ||||
BUILD_DEPENDS+= ${MKINSTDIR}/${UNIT}.fpm:${${UNIT:S/-/_/}_UNIT} | BUILD_DEPENDS+= ${MKINSTDIR}/${UNIT}.fpm:${${UNIT:S/-/_/}_UNIT} | ||||
. if ${fpc_ARGS:Mrun} || ${fpc_ARGS:Mbase} | . if ${fpc_ARGS:Mrun} || ${fpc_ARGS:Mbase} | ||||
RUN_DEPENDS+= ${MKINSTDIR}/${UNIT}.fpm:${${UNIT:S/-/_/}_UNIT} | RUN_DEPENDS+= ${MKINSTDIR}/${UNIT}.fpm:${${UNIT:S/-/_/}_UNIT} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. endfor | . endfor | ||||
.endif | .endif |