Lines 6-62
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= libgconf-java |
8 |
PORTNAME= libgconf-java |
9 |
PORTVERSION= 2.6.0 |
9 |
PORTVERSION= 2.10.1 |
10 |
PORTREVISION= 2 |
|
|
11 |
CATEGORIES= devel java |
10 |
CATEGORIES= devel java |
12 |
MASTER_SITES= ${MASTER_SITE_GNOME} |
11 |
MASTER_SITES= ${MASTER_SITE_GNOME} |
13 |
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.6 |
12 |
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.10 |
14 |
DIST_SUBDIR= gnome2 |
13 |
DIST_SUBDIR= gnome2 |
15 |
|
14 |
|
16 |
MAINTAINER= gnome@FreeBSD.org |
15 |
MAINTAINER= gnome@FreeBSD.org |
17 |
COMMENT= Java wrapper for GConf |
16 |
COMMENT= Java wrapper for GConf |
18 |
|
17 |
|
19 |
BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java |
18 |
BUILD_DEPENDS= ${JAVALIBDIR}/gtk${GTK_API_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java |
20 |
RUN_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java |
19 |
RUN_DEPENDS= ${JAVALIBDIR}/gtk${GTK_API_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java |
21 |
|
20 |
|
22 |
USE_BZIP2= yes |
21 |
USE_BZIP2= yes |
23 |
USE_XLIB= yes |
22 |
USE_XLIB= yes |
24 |
USE_GMAKE= yes |
23 |
USE_GMAKE= yes |
|
|
24 |
INSTALLS_SHLIB= yes |
25 |
USE_LIBTOOL_VER= 15 |
25 |
GNU_CONFIGURE= yes |
26 |
GNU_CONFIGURE= yes |
26 |
USE_JAVA= yes |
27 |
USE_JAVA= yes |
27 |
JAVA_VERSION= 1.2+ |
28 |
JAVA_VERSION= 1.2+ |
28 |
JAVA_OS= native |
29 |
JAVA_OS= native |
|
|
30 |
USE_GCC= 3.4+ |
29 |
USE_GNOME= gnomehack gconf2 |
31 |
USE_GNOME= gnomehack gconf2 |
30 |
USE_REINPLACE= yes |
32 |
USE_REINPLACE= yes |
31 |
CONFIGURE_ARGS= --without-gcj-compile \ |
33 |
CONFIGURE_ARGS= --without-gcj-compile |
32 |
--with-java-prefix=${JAVA_HOME} |
34 |
CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd" |
33 |
CONFIGURE_ENV= DB2="/dev/null" |
35 |
|
34 |
|
36 |
GCONF_API_VERSION= 2.10 |
35 |
GCONF_API_VERSION= 2.6 |
37 |
GTK_API_VERSION= 2.6 |
36 |
GTK_API_VERSION= 2.4 |
|
|
37 |
VERSION= 2.6.0 |
38 |
GTK_JAVA_VERSION= 2.4.0 |
39 |
PLIST_SUB= GCONF_API_VERSION=${GCONF_API_VERSION} \ |
38 |
PLIST_SUB= GCONF_API_VERSION=${GCONF_API_VERSION} \ |
40 |
PORTVERSION=${VERSION} |
39 |
PORTNAME=${PORTNAME} |
41 |
|
40 |
|
42 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
41 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
43 |
|
42 |
|
44 |
post-patch: |
|
|
45 |
@${REINPLACE_CMD} -e 's|^GTKJAR=.*|GTKJAR=${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar|' \ |
46 |
${WRKSRC}/configure |
47 |
|
48 |
do-install: |
43 |
do-install: |
49 |
${MKDIR} ${PREFIX}/lib |
44 |
${MKDIR} ${PREFIX}/lib |
50 |
${INSTALL_DATA} ${WRKSRC}/lib/libgconfjava${GCONF_API_VERSION}.so.${VERSION} \ |
45 |
${INSTALL_DATA} ${WRKSRC}/.libs/libgconfjni-${GCONF_API_VERSION}.so \ |
51 |
${PREFIX}/lib |
46 |
${PREFIX}/lib/libgconfjni-${GCONF_API_VERSION}.so.1 |
52 |
${LN} -sf ${PREFIX}/lib/libgconfjava${GCONF_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgconfjava${GCONF_API_VERSION}.so |
47 |
${LN} -sf ${PREFIX}/lib/libgconfjni-${GCONF_API_VERSION}.so.1 \ |
|
|
48 |
${PREFIX}/lib/libgconfjni-${GCONF_API_VERSION}.so |
49 |
${MKDIR} ${PREFIX}/libdata/pkgconfig |
50 |
${INSTALL_DATA} ${WRKSRC}/gconf-java.pc ${PREFIX}/libdata/pkgconfig |
53 |
${MKDIR} ${JAVAJARDIR} |
51 |
${MKDIR} ${JAVAJARDIR} |
54 |
${INSTALL_DATA} ${WRKSRC}/lib/gconf${GCONF_API_VERSION}-${VERSION}.jar \ |
52 |
${INSTALL_DATA} ${WRKSRC}/gconf${GCONF_API_VERSION}.jar ${JAVAJARDIR} |
55 |
${JAVAJARDIR} |
|
|
56 |
${LN} -sf ${JAVAJARDIR}/gconf${GCONF_API_VERSION}-${VERSION}.jar \ |
57 |
${JAVAJARDIR}/gconf${GCONF_API_VERSION}.jar |
58 |
|
53 |
|
59 |
post-install: |
54 |
post-install: |
|
|
55 |
.if !defined(NOPORTDOCS) |
56 |
${MKDIR} ${DOCSDIR} |
57 |
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR} |
58 |
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} |
59 |
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR} |
60 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
61 |
${MKDIR} ${DOCSDIR}/api |
62 |
cd ${WRKSRC}/doc/api && ${FIND} . | ${CPIO} -pdmu ${DOCSDIR}/api |
63 |
${MKDIR} ${DOCSDIR}/examples |
64 |
cd ${WRKSRC}/doc/examples && ${FIND} . \ |
65 |
| ${CPIO} -pdmu ${DOCSDIR}/examples |
66 |
.endif |
60 |
@${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ |
67 |
@${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ |
61 |
s|%%PREFIX%%|${PREFIX}|g ; \ |
68 |
s|%%PREFIX%%|${PREFIX}|g ; \ |
62 |
s|%%GCONF_API_VERSION%%|${GCONF_API_VERSION}|g' \ |
69 |
s|%%GCONF_API_VERSION%%|${GCONF_API_VERSION}|g' \ |