mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
8ae1c5ee17
Submitted by: Sergey Zaharchenko <doublef-ctm@yandex.ru>
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
PNET_VERSION= 0.7.4
|
|
PNET_REVISION= 0
|
|
PNET_PORTVER= ${PNET_VERSION}.${PNET_REVISION}
|
|
PNET_PORTREV= 0
|
|
PNET_PORTEPOCH= 0
|
|
|
|
PNET_MASTER_SITES= http://www.southern-storm.com.au/download/
|
|
# ${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::
|