aboutsummaryrefslogtreecommitdiff
path: root/graphics/skencil/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/skencil/Makefile')
-rw-r--r--graphics/skencil/Makefile41
1 files changed, 20 insertions, 21 deletions
diff --git a/graphics/skencil/Makefile b/graphics/skencil/Makefile
index 09febcdf4a12..8641542419cc 100644
--- a/graphics/skencil/Makefile
+++ b/graphics/skencil/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= skencil
-PORTVERSION= 0.6.16
-PORTREVISION= 1
+PORTVERSION= 0.6.17
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= sketch
@@ -24,12 +23,6 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinte
USE_PYTHON= yes
USE_PYDISTUTILS= yes
-.include <bsd.port.pre.mk>
-
-.if ${PYTHON_VERSION} == "python2.4"
-EXTRA_PATCHES= ${FILESDIR}/py24-patch-Pax_paxtkinter.c
-.endif
-
CONFFLAGS= --tk-autoconf --tk-flags="-I${X11BASE}/include -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 -L${LOCALBASE}/lib -ltk84 -ltcl84 -L${X11BASE}/lib -lX11"
SKETCHDOCS= BUGS Doc NEWS PROJECTS README TODO
@@ -41,26 +34,32 @@ do-configure:
${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} setup.py configure ${CONFFLAGS})
+post-build:
+.for exec in sk2ppm sk2ps skconvert skencil skshow
+ @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/${exec}.in
+ @${ECHO_CMD} '' >> ${WRKDIR}/${exec}.in
+ @${ECHO_CMD} 'exec ${PYTHON_CMD} ${DATADIR}/${exec}.py $$@' >> ${WRKDIR}/${exec}.in
+.endfor
+
do-install:
+.for exec in sk2ppm sk2ps skconvert skencil skshow
+ ${INSTALL_SCRIPT} ${WRKDIR}/${exec}.in ${PREFIX}/bin/${exec}
+.endfor
@${MKDIR} ${DATADIR}
.for dir in Filter Pax Plugins Resources Script Sketch
- (cd ${WRKSRC}; ${TAR} -cf - -X ${FILESDIR}/excludelist ${dir}) | \
- (cd ${DATADIR}; ${TAR} xf -)
+ ${TAR} -C ${WRKSRC} -cf - -X ${FILESDIR}/excludelist ${dir} | \
+ ${TAR} -C ${DATADIR} -xf -
.endfor
(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SKETCHSCRIPTS} ${DATADIR})
+ (cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- (cd ${WRKSRC}; ${TAR} cf - ${SKETCHDOCS}) | (cd ${DOCSDIR}; ${TAR} xf -)
+ ${TAR} -C ${WRKSRC} -cf - ${SKETCHDOCS} | ${TAR} -C ${DOCSDIR} -xf -
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
- (cd ${WRKSRC}/Examples; ${TAR} cf - .) | (cd ${EXAMPLESDIR}; ${TAR} xf -)
+ ${TAR} -C ${WRKSRC}/Examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
- (cd ${DATADIR}; ${PYTHON_CMD} finishinst.py)
-.for exec in sk2ppm sk2ps skconvert skencil skshow
- ${SED} -e "s|@DATADIR@|${DATADIR}|g ; \
- s|@PYTHON_CMD@|${PYTHON_CMD}|g" \
- < ${FILESDIR}/${exec}.in > ${PREFIX}/bin/${exec}
- ${CHMOD} ${BINMODE} ${PREFIX}/bin/${exec}
- ${CHOWN} ${BINOWN}:${BINGROUP} ${PREFIX}/bin/${exec}
-.endfor
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>