blob: b522b720a340e27362cf2120cd18739e384c0121 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
# New ports collection makefile for: irpf
# Date created: Ter 6 Mar 2007 01:50:17 UTC
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= irpf
PORTVERSION= 2009.1.0
PORTREVISION= 3
CATEGORIES= portuguese finance java
MASTER_SITES= http://www.receita.fazenda.gov.br/Publico/programas/irpf/2009/PGDIrpf2009/Java/ZIP/
PKGNAMEPREFIX?= pt_BR-
DISTNAME= IRPF2009v1.0
MAINTAINER= lioux@FreeBSD.org
COMMENT= Programa do Imposto de Renda Pessoa Fisica 2009 versao Java
USE_ZIP= yes
WRKSRC= ${WRKDIR}/${PORTNAME}2009
USE_JAVA= yes
JAVA_RUN= yes
JAVA_VERSION= 1.4+
JAVA_OS= native
NO_BUILD= yes
PLIST_SUB= JAR_DIR=${JAR_DIR}
JAVAVM= ${LOCALBASE}/bin/java
JAR_DIR= ${JAVAJARDIR:S,^${PREFIX}/,,}/${PORTNAME}
DESKTOP_ENTRIES= "Imposto de Renda Pessoa Fisica 2009" \
"${COMMENT}" \
"" \
"${PORTNAME}" \
"Office;Finance;" \
"true"
#
## Files to install
#
# images
IMAGE_FILES= \
offline.png \
online.png
# jar
JAR_FILES= \
irpf.jar \
lib/commons-beanutils-1.7.jar \
lib/commons-collections-2.1.jar \
lib/commons-digester-1.8.jar \
lib/commons-logging-1.0.2.jar \
lib/forms-1.0.3.jar \
lib/foxtrot.jar \
lib/itext-1.02b.jar \
lib/jasperreports-2.0.3.jar \
lib/jdt-compiler-3.1.1.jar \
lib/jhall.jar \
lib/looks-1.3.1.jar \
lib/ppgd-formatosext-2.9.jar \
lib/ppgd-gui-2.9.jar \
lib/ppgd-gui-beans-2.9.jar \
lib/ppgd-infra-2.9.jar \
lib/ppgd-negocio-2.9.jar \
lib/ppgd-persistencia-2.9.jar \
lib/ppgd-swixml.jar \
lib/serpro.jar \
lib/swing-layout-0.7.jar \
lib/xalan.jar
#
## PLIST generation
#
# wrapper
PLIST_FILES+= bin/${PORTNAME}
# images
.for image in ${IMAGE_FILES}
PLIST_FILES+= %%DATADIR%%/${image}
.endfor
# jars
.for jar in ${JAR_FILES}
PLIST_FILES+= %%JAR_DIR%%/${jar:C/^lib\///}
.endfor
# data dir
PLIST_DIRS+= \
%%DATADIR%%
# jar dir
PLIST_DIRS+= \
%%JAR_DIR%%
post-patch:
@${SED} -e "s|%%DATADIR%%|${DATADIR}|; \
s|%%DATA_FILES%%|${IMAGE_FILES}|; \
s|%%JAR_DIR%%|${JAR_DIR}|; \
s|%%JAR_FILE%%|${JAR_FILE}|; \
s|%%JAR_FILES%%|${JAR_FILES:C/^lib\///}|; \
s|%%JAVA_VERSION%%|${JAVA_VERSION}|; \
s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-install:
# jar dir
@${MKDIR} ${PREFIX}/${JAR_DIR}
# data dir
@${MKDIR} ${DATADIR}
# images
.for file in ${IMAGE_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} \
${DATADIR}
.endfor
# jars
.for jar in ${JAR_FILES}
@${INSTALL_DATA} ${WRKSRC}/${jar} \
${PREFIX}/${JAR_DIR}
.endfor
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/bin/${PORTNAME}
.include <bsd.port.pre.mk>
JAR_FILE= ${PORTNAME}.jar
.include <bsd.port.post.mk>
|