blob: 1ec3e57344cd7e4e9924d497171d95ef3286d447 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
PLIST= ${.CURDIR}/pkg-plist
PATCHDIR= ${.CURDIR}/files
WRKSRC= ${WRKDIR}/${PORTNAME:S/$/build_/}${PORTVERSION:S/$/_exp/}
UNITPREFIX= unit-
UNITEXTRACT_SUFX= .tar.gz
UNITNAME= ${UNITPREFIX}${PKGNAMESUFFIX:S/-//}${BUILDNAME:S/^/./}${UNITEXTRACT_SUFX}
UNITDIR= lib/fpc/${PORTVERSION}/units/${BUILDNAME}
EXTRACT_AFTER_ARGS= | ${TAR} -xf - ${EXTRACTUNITDIR}
.if !exists(${LOCALBASE}/bin/fpcmake)
EXTRACTUNITDIR+= fpc-bin
DISTFILES+= ${DISTNAME:S/$/.bin/}${EXTRACT_SUFX}:bin
MAKE_ENV+= FPCMAKE=${WRKDIR}/${PORTNAME:S/$/-bin/}/bin/fpcmake
.endif
post-extract:
@cd ${WRKDIR}/${WRKUNITDIR} && \
${FIND} ${WRKSRC} -type d -name .svn | ${XARGS} ${RM} -rf
do-build:
@cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} all ${MAKE_ENV}
do-install:
@cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} install ${MAKE_ENV}
. if !defined(NOPORTSDOCS)
. if defined(HAVE_EXAMPLES)
@cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} fpc_exampleinstall
. endif
. endif
security-check: fpc-check-install
fpc-check-install:
check-makevars::
@${ECHO_CMD} "*****************************************************************"
@${ECHO_CMD} ""
@${ECHO_CMD} " The following freepascal unit will be installed in your system: "
@${ECHO_CMD} ""
@${ECHO_CMD} " * ${UNITPREFIX}${PKGNAMESUFFIX:S/-//}"
@${ECHO_CMD} ""
@${ECHO_CMD} "*****************************************************************"
|