forked from Lainports/freebsd-ports
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# Created by: Anton Yudin <toha@toha.org.ua>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= poi
|
|
PORTVERSION= 3.10.1
|
|
CATEGORIES= textproc devel java
|
|
MASTER_SITES= APACHE/${PORTNAME}/release/bin
|
|
PKGNAMEPREFIX= apache-
|
|
DISTNAME= ${PORTNAME}-bin-${PORTVERSION}-${RELEASE_DATE}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Java API To Access Microsoft Format Files
|
|
|
|
LICENSE= APACHE20
|
|
|
|
PORTDOCS= *
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
NO_BUILD= yes
|
|
RELEASE_DATE= 20140818
|
|
JARNAMES= examples excelant scratchpad ooxml ooxml-schemas
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
USES= cpe
|
|
CPE_VENDOR= apache
|
|
|
|
.for i in ${JARNAMES}
|
|
PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}-${i}.jar
|
|
.endfor
|
|
|
|
do-install:
|
|
@${ECHO_MSG} -n ">> Installing JAR as ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${RELEASE_DATE}.jar..."
|
|
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
|
|
.for i in ${JARNAMES}
|
|
@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${i}-${PORTVERSION}-${RELEASE_DATE}.jar ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}-${i}.jar
|
|
.endfor
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
@${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}/..."
|
|
@cd ${WRKSRC}/docs \
|
|
&& ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
|
|
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
|
@${ECHO_MSG} " [ DONE ]"
|
|
|
|
.include <bsd.port.mk>
|