aboutsummaryrefslogtreecommitdiffstats
path: root/devel/looks/Makefile
blob: e8d166ecac185faf497468e145e9446cb0feba0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$

PORTNAME=   looks
DISTVERSION=    2_6_0
CATEGORIES= devel java
MASTER_SITES=   http://www.jgoodies.com/download/libraries/${PORTNAME}/ \
        LOCAL/makc
DISTNAME=   jgoodies-${PORTNAME}-${DISTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Improved appearance for Java Swing applications

LICENSE=    BSD3CLAUSE

USES=       zip
USE_JAVA=   yes
JAVA_VERSION=   1.6+
NO_BUILD=   yes

WRKSRC=     ${WRKDIR}/jgoodies-${PORTNAME}-${PORTVERSION}

JARFILE=    jgoodies-${PORTNAME}-${PORTVERSION}.jar

PLIST_FILES=    %%JAVAJARDIR%%/${JARFILE} \
        %%JAVAJARDIR%%/looks.jar
DOCFILES=   README.html RELEASE-NOTES.txt
PORTDOCS=   *

OPTIONS_DEFINE= DOCS

do-install:
    ${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}
    ${LN} -sf ${JARFILE} ${STAGEDIR}${JAVAJARDIR}/looks.jar
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${DOCFILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
    (cd ${WRKSRC}/docs/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>