aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-05-31 01:49:55 +0800
committerpawel <pawel@FreeBSD.org>2014-05-31 01:49:55 +0800
commitfdc57b705f784505c805d4d4ccb25a4e3bc3c123 (patch)
tree82245b5f4d4d92196f580f054ba763bdb2f7a2a2 /java
parentd6658da700c576e5747643785848bd3816c2f931 (diff)
downloadfreebsd-ports-gnome-fdc57b705f784505c805d4d4ccb25a4e3bc3c123.tar.gz
freebsd-ports-gnome-fdc57b705f784505c805d4d4ccb25a4e3bc3c123.tar.zst
freebsd-ports-gnome-fdc57b705f784505c805d4d4ccb25a4e3bc3c123.zip
- Add staging support
- Convert to new options framework
Diffstat (limited to 'java')
-rw-r--r--java/jaf/Makefile43
1 files changed, 13 insertions, 30 deletions
diff --git a/java/jaf/Makefile b/java/jaf/Makefile
index c480bbfeb598..ae88f32ba0d0 100644
--- a/java/jaf/Makefile
+++ b/java/jaf/Makefile
@@ -19,44 +19,27 @@ NO_BUILD= yes
NO_CDROM= See the license
DOWNLOAD_URL= http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html\#jaf-1.1.1-fcs-oth-JPR
-.if !defined(NOPORTDOCS)
-DOCFILES1= JAF-1.1.pdf JAF-1.1.ps JAF-1.1-changes.txt javadocs
-DOCFILES2= LICENSE.txt README.txt RELNOTES.txt
-PORTDOCS= ${DOCFILES1} ${DOCFILES2}
-.endif
+PORTDOCS= *
+PORTEXAMPLES= *
PLIST_FILES= %%JAVAJARDIR%%/activation.jar
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= you must manually fetch the distribution from ${DOWNLOAD_URL} and place it in ${DISTDIR} then run make again
.endif
do-install:
- @${ECHO_MSG} -n ">> Installing demo files in ${EXAMPLESDIR}..."
- @${MKDIR} ${EXAMPLESDIR}
- @cd ${WRKSRC} && ${FIND} demo \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR} > /dev/null 2>&1
- @${ECHO_MSG} " [ DONE ]"
- @${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/activation.jar..."
- @${INSTALL_DATA} ${WRKSRC}/activation.jar ${JAVAJARDIR}/
- @${ECHO_MSG} " [ DONE ]"
-.if !defined(NOPORTDOCS)
- @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
- @${MKDIR} ${DOCSDIR}
- @cd ${WRKSRC}/docs && ${FIND} ${DOCFILES1} \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
- @cd ${WRKSRC} && ${FIND} ${DOCFILES2} \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
- @${ECHO_MSG} " [ DONE ]"
-.endif
-
-post-install:
- @${FIND} -s ${WRKSRC}/demo -not -type d 2>/dev/null \
- | ${SED} -ne 's,^${WRKSRC},${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
- @${FIND} -s -d ${WRKSRC}/demo -type d 2>/dev/null \
- | ${SED} -ne 's,^${WRKSRC},@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,},p' >> ${TMPPLIST}
- @${ECHO_CMD} '@dirrm ${EXAMPLESDIR:S,^${PREFIX}/,,}' >> ${TMPPLIST}
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ (cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+ ${INSTALL_DATA} ${WRKSRC}/activation.jar ${STAGEDIR}${JAVAJARDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC} && ${INSTALL_DATA} LICENSE.txt README.txt RELNOTES.txt \
+ ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/docs && ${INSTALL_DATA} JAF-1.1.pdf JAF-1.1.ps \
+ JAF-1.1-changes.txt ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} javadocs ${STAGEDIR}${DOCSDIR})
.include <bsd.port.post.mk>