aboutsummaryrefslogtreecommitdiff
path: root/lang/huc/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-02-20 16:00:58 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-02-20 16:00:58 +0000
commit73e00b9a3f605c6991b8d91e92b0582af3e2476a (patch)
treeeeed762c97bdea7716d4c7b6806d91ab696f4349 /lang/huc/Makefile
parentce1123fb304a8e0b37e2aae95fae7c4c803a7089 (diff)
downloadports-73e00b9a3f605c6991b8d91e92b0582af3e2476a.tar.gz
ports-73e00b9a3f605c6991b8d91e92b0582af3e2476a.zip
Notes
Diffstat (limited to 'lang/huc/Makefile')
-rw-r--r--lang/huc/Makefile34
1 files changed, 15 insertions, 19 deletions
diff --git a/lang/huc/Makefile b/lang/huc/Makefile
index 7b37e306473b..b4db8c4e27f2 100644
--- a/lang/huc/Makefile
+++ b/lang/huc/Makefile
@@ -10,35 +10,31 @@ PORTVERSION= 3.20
PORTREVISION= 1
CATEGORIES= lang emulators
MASTER_SITES= http://www.zeograd.com/download/
-DISTNAME= huc_src_320
+DISTNAME= ${PORTNAME}_src_${PORTVERSION:S/.//}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= PC Engine C compiler which can create ROMs (hucard) or CD images
-WRKSRC= ${WRKDIR}/huc
+WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
-
-pre-build:
- @${RM} -rf ${WRKSRC}/include/CVS ${WRKSRC}/include/pce/CVS
- @${RM} -rf ${WRKSRC}/doc/CVS ${WRKSRC}/doc/huc/CVS \
- ${WRKSRC}/doc/nes/CVS ${WRKSRC}/doc/pce/CVS
+MAKE_ARGS= CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/huc ${PREFIX}/bin/huc
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/isolink ${PREFIX}/bin/isolink
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/nesasm ${PREFIX}/bin/nesasm
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/pceas ${PREFIX}/bin/pceas
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/pcxtool ${PREFIX}/bin/pcxtool
- @${MKDIR} ${PREFIX}/include/${PORTNAME}
- @${CP} -r ${WRKSRC}/include/ ${PREFIX}/include/${PORTNAME}
-
-post-install:
+.for file in huc isolink nesasm pceas pcxtool
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${PREFIX}/bin
+.endfor
+ @${MKDIR} ${PREFIX}/include/${PORTNAME}
+ ${TAR} -C ${WRKSRC}/include --exclude "CVS" -cf - . | \
+ ${TAR} -C ${PREFIX}/include/${PORTNAME} --unlink -xf -
+ @${CHOWN} ${SHAREOWN}:${SHAREMODE} ${PREFIX}/include/${PORTNAME}
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${CP} -r ${WRKSRC}/doc/ ${PREFIX}/share/doc/${PORTNAME}
+ @${MKDIR} ${DOCSDIR}
+ ${TAR} -C ${WRKSRC}/doc --exclude "CVS" -cf - . | \
+ ${TAR} -C ${DOCSDIR} --unlink -xf -
+ @${CHOWN} ${SHAREOWN}:${SHAREMODE} ${DOCSDIR}
.endif
- @${CAT} ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>