2006-02-20 20:23:47 +00:00
|
|
|
PNET_VERSION= 0.7.4
|
2004-03-15 01:42:58 +00:00
|
|
|
PNET_REVISION= 0
|
2004-03-06 17:08:04 +00:00
|
|
|
PNET_PORTVER= ${PNET_VERSION}.${PNET_REVISION}
|
|
|
|
PNET_PORTREV= 0
|
|
|
|
PNET_PORTEPOCH= 0
|
|
|
|
|
2005-06-17 08:29:23 +00:00
|
|
|
PNET_MASTER_SITES= http://www.southern-storm.com.au/download/
|
|
|
|
# ${MASTER_SITE_GNU}
|
2004-03-16 09:43:10 +00:00
|
|
|
PNET_MASTER_SITE_SUBDIR= dotgnu/pnet/
|
|
|
|
|
2004-03-06 17:08:04 +00:00
|
|
|
ILSTRIP_CMD= ${LOCALBASE}/bin/ilstrip
|
2004-03-25 20:11:28 +00:00
|
|
|
ILRUN_CMD= ${LOCALBASE}/bin/ilrun
|
2004-03-06 17:08:04 +00:00
|
|
|
|
|
|
|
.if defined(WITH_OPTIMIZED_CSFLAGS)
|
2004-03-25 20:11:28 +00:00
|
|
|
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}
|
2004-03-26 16:23:25 +00:00
|
|
|
PLIST_FILES+= bin/${strap} bin/${strap}${PNET_STRAP_SUFX}
|
2004-03-25 20:11:28 +00:00
|
|
|
.endfor
|
|
|
|
.for strap in ${PNET_STRAP_SBIN}
|
2004-03-26 16:23:25 +00:00
|
|
|
PLIST_FILES+= sbin/${strap} sbin/${strap}${PNET_STRAP_SUFX}
|
2004-03-25 20:11:28 +00:00
|
|
|
.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
|
2004-03-06 17:08:04 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-everything:: post-everything
|
|
|
|
.if !defined(WITH_OPTIMIZED_CSFLAGS)
|
|
|
|
@${ECHO_MSG} "Define optimized CSLAGS with"
|
|
|
|
@${ECHO_MSG} "WITH_OPTIMIZED_CSFLAGS=yes"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-everything::
|