diff options
Diffstat (limited to 'devel/glib-java/Makefile')
-rw-r--r-- | devel/glib-java/Makefile | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/devel/glib-java/Makefile b/devel/glib-java/Makefile new file mode 100644 index 000000000..780a1b0db --- /dev/null +++ b/devel/glib-java/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: glib-java +# Date created: 26 Oct 2005 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= glib-java +PORTVERSION= 0.2.1 +CATEGORIES= devel java +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.2 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Java wrapper GLib 2 + +USE_BZIP2= yes +USE_GMAKE= yes +INSTALLS_SHLIB= yes +USE_LIBTOOL_VER=15 +USE_JAVA= yes +JAVA_VERSION= 1.2+ +JAVA_OS= native +USE_GCC= 3.4+ +USE_GNOME= gnomehack glib20 +USE_REINPLACE= yes +CONFIGURE_ARGS= --without-gcj-compile +CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd" +GLIB_API_VERSION= 0.2 +PLIST_SUB= GLIB_API_VERSION=${GLIB_API_VERSION} PORTNAME=${PORTNAME} +PKGMESSAGE= ${WRKDIR}/pkg-message + +do-install: + ${MKDIR} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/.libs/libglibjni-${GLIB_API_VERSION}.so \ + ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so.1 + ${LN} -sf ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so.1 \ + ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so + ${MKDIR} ${PREFIX}/libdata/pkgconfig + ${INSTALL_DATA} ${WRKSRC}/glib-java.pc ${PREFIX}/libdata/pkgconfig + ${MKDIR} ${PREFIX}/include/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/src/jni/jg_jnu.h ${PREFIX}/include/${PORTNAME} + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/glib${GLIB_API_VERSION}.jar ${JAVAJARDIR} + ${MKDIR} ${PREFIX}/share/${PORTNAME}/macros + ${INSTALL_DATA} ${WRKSRC}/macros/* ${PREFIX}/share/${PORTNAME}/macros + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${MKDIR} ${DOCSDIR}/api + cd ${WRKSRC}/doc/api && ${FIND} . | ${CPIO} -pdmu ${DOCSDIR}/api +.endif + @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ + s|%%PREFIX%%|${PREFIX}|g ; \ + s|%%GLIB_API_VERSION%%|${GLIB_API_VERSION}|g' \ + < ${PKGDIR}/pkg-message > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |