mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
312a029f5f
- BUMP PORTREVISION in pnet meta-port. Submitted by: Sylvio Cesar <scjamorim@bsd.com.br> (maintainer) Reported by: QAT, pav
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
PNET_VERSION= 0.8.0
|
|
PNET_REVISION= 1
|
|
PNET_PORTVER= ${PNET_VERSION}.${PNET_REVISION}
|
|
PNET_PORTREV= 0
|
|
PNET_PORTEPOCH= 0
|
|
PNET_MASTER_SITES= ${MASTER_SITE_GNU}
|
|
PNET_MASTER_SITE_SUBDIR= dotgnu/pnet/
|
|
|
|
ILSTRIP_CMD= ${LOCALBASE}/bin/ilstrip
|
|
ILRUN_CMD= ${LOCALBASE}/bin/ilrun
|
|
|
|
.if defined(WITH_OPTIMIZED_CSFLAGS)
|
|
CSFLAGS+=-O2
|
|
.endif
|
|
|
|
.if defined(PNET_STRAP_BIN) || defined(PNET_STRAP_SBIN)
|
|
|
|
PNET_STRAP_SUFX?= .exe
|
|
PNET_BIN_WRKDIR?= ${WRKDIR}/PNET_STRAP/bin
|
|
PNET_SBIN_WRKDIR?= ${WRKDIR}/PNET_STRAP/sbin
|
|
|
|
.for strap in ${PNET_STRAP_BIN}
|
|
PLIST_FILES+= bin/${strap} bin/${strap}${PNET_STRAP_SUFX}
|
|
.endfor
|
|
.for strap in ${PNET_STRAP_SBIN}
|
|
PLIST_FILES+= sbin/${strap} sbin/${strap}${PNET_STRAP_SUFX}
|
|
.endfor
|
|
|
|
pre-patch: pnet-strap
|
|
pnet-strap:
|
|
@${MKDIR} ${PNET_BIN_WRKDIR}
|
|
@${MKDIR} ${PNET_SBIN_WRKDIR}
|
|
|
|
.for strap in ${PNET_STRAP_BIN}
|
|
@${ECHO_CMD} "#!${SH}" >> ${PNET_BIN_WRKDIR}/${strap}
|
|
@${ECHO_CMD} "${ILRUN_CMD} ${ILRUN_FLAGS} ${PREFIX}/bin/${strap}${PNET_STRAP_SUFX}" >> ${PNET_BIN_WRKDIR}/${strap}
|
|
.endfor
|
|
.for strap in ${PNET_STRAP_SBIN}
|
|
@${ECHO_CMD} -n "#!${SH}" >> ${PNET_SBIN_WRKDIR}/${strap}
|
|
@${EHCO_CMD} -n "${ILRUN_CMD} ${ILRUN_FLAGS} ${PREFIX}/sbin/${strap}${PNET_STRAP_SUFX}" >> ${PNET_SBIN_WRKDIR}/${strap}
|
|
.endfor
|
|
|
|
post-install: pnet-strap-install
|
|
pnet-strap-install:
|
|
.for strap in ${PNET_STRAP_BIN}
|
|
@${INSTALL_SCRIPT} ${PNET_BIN_WRKDIR}/${strap} ${PREFIX}/bin
|
|
.endfor
|
|
.for strap in ${PNET_STRAP_SBIN}
|
|
@${INSTALL_SCRIPT} ${PNET_SBIN_WRKDIR}/${strap} ${PREFIX}/sbin
|
|
.endfor
|
|
.endif
|
|
|
|
pre-everything:: post-everything
|
|
.if !defined(WITH_OPTIMIZED_CSFLAGS)
|
|
@${ECHO_MSG} "Define optimized CSFLAGS with"
|
|
@${ECHO_MSG} "WITH_OPTIMIZED_CSFLAGS=yes"
|
|
.endif
|
|
|
|
post-everything::
|