diff options
Diffstat (limited to 'japanese/xklock/Makefile')
-rw-r--r-- | japanese/xklock/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/japanese/xklock/Makefile b/japanese/xklock/Makefile index 775255b..49df1ae 100644 --- a/japanese/xklock/Makefile +++ b/japanese/xklock/Makefile @@ -7,6 +7,7 @@ PORTNAME= xklock PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= japanese x11 MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= trevor @@ -25,14 +26,13 @@ USE_X_PREFIX= yes USE_XPM= yes pre-configure: - @${MV} ${WRKDIR}/jnames.c ${WRKDIR}/jnames.c.in - @${SED} -e "s:/usr/local:${PREFIX}:" ${WRKDIR}/jnames.c.in \ - > ${WRKDIR}/jnames.c - @${MV} ${WRKDIR}/xklock.h ${WRKDIR}/xklock.h.in - @${SED} -e "s:/usr/local:${PREFIX}:" ${WRKDIR}/xklock.h.in \ - > ${WRKDIR}/xklock.h - -post-install: - ${TOUCH} ${PREFIX}/lib/jnames +.for file in jnames.c xklock.h + @${PERL} -pi -e "s:%%PREFIX%%:${PREFIX}:" ${WRKSRC}/${file} +.endfor + +do-install: + ${INSTALL_PROGRAM} -m 4755 ${WRKSRC}/xklock ${PREFIX}/bin + @${MKDIR} ${PREFIX}/lib/X11/xklock + ${TOUCH} ${PREFIX}/lib/X11/xklock/jnames .include <bsd.port.mk> |