mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# New ports collection makefile for: looks
|
|
# Date created: 22 May 2005
|
|
# Whom: Thierry Thomas <thierry@pompo.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= looks
|
|
PORTVERSION= 2.0.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= http://www.jgoodies.com/download/libraries/${PORTNAME}/
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S|.|_|g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The JGoodies Looks improve the appearance of your Java applications
|
|
|
|
USE_ZIP= yes
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.4+
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
JARFILE= ${PORTNAME}.jar
|
|
|
|
###
|
|
# potential conflict with java/jcalendar, both install looksXXX.jar
|
|
###
|
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/${JARFILE} \
|
|
%%JAVAJARDIR%%/LICENSE.${PORTNAME}.txt
|
|
DOCFILES= README.html RELEASE-NOTES.txt
|
|
EXAMPLES= demo.jar lib/forms-1.0.7.jar tiny.jar
|
|
PORTDOCS= *
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PLIST_FILES+= ${EXAMPLES:S|^|%%EXAMPLESDIR%%/|}
|
|
PLIST_DIRS+= %%EXAMPLESDIR%%/lib %%EXAMPLESDIR%%
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MV} ${WRKSRC}/LICENSE.txt ${WRKSRC}/LICENSE.${PORTNAME}.txt
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${JARFILE:S|.jar|-${PORTVERSION}.jar|:S|^|${WRKSRC}/|} \
|
|
${JAVAJARDIR}/${JARFILE}
|
|
@${INSTALL_DATA} ${WRKSRC}/LICENSE.${PORTNAME}.txt ${JAVAJARDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR} ${EXAMPLESDIR}/lib
|
|
@${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${DOCSDIR}
|
|
@${CP} -R ${WRKSRC}/docs/* ${DOCSDIR}
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/demo/|:S|lib|../lib|} ${EXAMPLESDIR}
|
|
@${MV} ${EXAMPLESDIR}/forms-1.0.7.jar ${EXAMPLESDIR}/lib
|
|
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|