aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--graphics/py-soya3d/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/graphics/py-soya3d/Makefile b/graphics/py-soya3d/Makefile
index 51a82a5ef870..a8fe9f4a1ce5 100644
--- a/graphics/py-soya3d/Makefile
+++ b/graphics/py-soya3d/Makefile
@@ -29,12 +29,11 @@ USE_SDL= sdl
LDFLAGS+= -L${LOCALBASE}/lib -lGLU
-MANDIR= ${WRKDIR}/${DISTNAME}/manpage/man1
-INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
SOYATUTVER= 0.14
OPTIONS_DEFINE= DOCS EXAMPLES
+PLIST_FILES= man/man1/soya_editor.1.gz
PORTDOCS= *
PORTEXAMPLES= *
@@ -56,20 +55,19 @@ post-patch:
's|/usr/include|${LOCALBASE}/include|g' ${WRKSRC}/setup.py
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soya/*.so
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/tutorial/* ${STAGEDIR}${EXAMPLESDIR}
${FIND} ${STAGEDIR}${EXAMPLESDIR}/* -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
.endif
-
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for FILE in AUTHORS README
+. for FILE in AUTHORS README
@${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR}
-.endfor
-
-.for FILE in ${MAN1}
- ${INSTALL_MAN} ${MANDIR}/${FILE} ${STAGEDIR}${PREFIX}/man/man1
-.endfor
+. endfor
+.endif
+ ${INSTALL_MAN} ${WRKSRC}/manpage/man1/soya_editor.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.post.mk>