1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/lang/pnet/Makefile.pnet
Renato Botelho 3419ccf917 - Update pnet related ports:
* lang/pnet 0.7.0 -> 0.7.4
  * lang/pnet-base 0.7.0 -> 0.7.4
  * lang/pnetlib 0.7.0 -> 0.7.4
  * lang/pnetc 0.7.0 -> 0.7.4
  * lang/ml-pnet 0.7.0 -> 0.7.4
  * lang/treecc 0.3.6 -> 0.3.8
  * lang/libjit 0.0.4 -> 0.0.6
- Make portlint(1) happy
- Unbreak ml-pnet on 4.x

PR:		ports/93602
Submitted by:	Jean Milanez Melo <jmelo@freebsdbrasil.com.br>
Reworked by:	garga
Thanks to:	mnag, tdb
2006-02-20 20:23:47 +00:00

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 CSLAGS with"
@${ECHO_MSG} "WITH_OPTIMIZED_CSFLAGS=yes"
.endif
post-everything::