aboutsummaryrefslogtreecommitdiffstats
path: root/x11-fonts
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-12-19 20:51:46 +0800
committerdanilo <danilo@FreeBSD.org>2013-12-19 20:51:46 +0800
commitd1e972f5d21625e9ee89bae0f61893da8488eeff (patch)
tree4d8f0ddde2aa1a7ccefd92eebad4cfe5dc9b2cca /x11-fonts
parent5a3521caa2813dbc32babf032d1238017566bce2 (diff)
downloadfreebsd-ports-graphics-d1e972f5d21625e9ee89bae0f61893da8488eeff.tar.gz
freebsd-ports-graphics-d1e972f5d21625e9ee89bae0f61893da8488eeff.tar.zst
freebsd-ports-graphics-d1e972f5d21625e9ee89bae0f61893da8488eeff.zip
- Support USE_GITHUB
- Add stage support PR: ports/184862 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'x11-fonts')
-rw-r--r--x11-fonts/pcf2bdf/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/x11-fonts/pcf2bdf/Makefile b/x11-fonts/pcf2bdf/Makefile
index b4d875069a5..e49b4b3e321 100644
--- a/x11-fonts/pcf2bdf/Makefile
+++ b/x11-fonts/pcf2bdf/Makefile
@@ -4,7 +4,7 @@
PORTNAME= pcf2bdf
PORTVERSION= 1.04
CATEGORIES= x11-fonts
-MASTER_SITES= http://cloud.github.com/downloads/ganaware/pcf2bdf/
+MASTER_SITES= GHC
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
@@ -12,17 +12,25 @@ COMMENT= Convert X font from PCF to BDF
LICENSE= MIT
-NO_WRKSUBDIR= yes
+USE_GITHUB= yes
+GH_ACCOUNT= ganaware
-MAN1= pcf2bdf.1
-PLIST_FILES= bin/pcf2bdf
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+PLIST_FILES= bin/pcf2bdf man/man1/pcf2bdf.1.gz
+
+post-extract:
+ @${MKDIR} ${WRKSRC}
+ @${LN} -sf ../pcf2bdf.cc ${WRKSRC}/pcf2bdf.cc
+ @${LN} -sf ../pcf2bdf.man ${WRKSRC}/pcf2bdf.1
-NO_STAGE= yes
do-build:
- ${CXX} ${CXXFLAGS} -o ${WRKSRC}/pcf2bdf ${WRKSRC}/pcf2bdf.cc
+ (cd ${WRKSRC} && ${CXX} ${CXXFLAGS} pcf2bdf.cc -o pcf2bdf)
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pcf2bdf ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/pcf2bdf.man ${MANPREFIX}/man/man1/pcf2bdf.1
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} pcf2bdf \
+ ${STAGEDIR}${PREFIX}/bin)
+ (cd ${WRKSRC} && ${INSTALL_MAN} pcf2bdf.1 \
+ ${STAGEDIR}${MANPREFIX}/man/man1)
.include <bsd.port.mk>