summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/libgtk-java/Makefile
blob: 2ef3352b71a68fb7569d90a5764484533263d7ff (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
# New ports collection makefile for:   libgtk-java
# Date created:        22 December 2003
# Whom:                Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   libgtk-java
PORTVERSION=    2.3.6
CATEGORIES= x11-toolkits java
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Java wrapper for Gtk+, Pango, Atk, and Glib

USE_BZIP2=  yes
USE_XLIB=   yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_JAVA=   1.2+
USE_GNOME=  gnomehack gtk20
CONFIGURE_ARGS= --without-gcj-compile \
        --with-java-prefix=${JAVA_HOME}
CONFIGURE_ENV=  DB2="/dev/null"

GTK_API_VERSION=    2.4
VERSION=        beta1
PLIST_SUB=      GTK_API_VERSION=${GTK_API_VERSION} \
            PORTVERSION=${VERSION}

PKGMESSAGE=     ${WRKDIR}/pkg-message

do-install:
    ${MKDIR} ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/gtk/lib/libgtkjava${GTK_API_VERSION}.so.${VERSION} \
        ${PREFIX}/lib
    ${LN} -sf ${PREFIX}/lib/libgtkjava${GTK_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgtkjava${GTK_API_VERSION}.so
    ${MKDIR} ${JAVAJARDIR}
    ${INSTALL_DATA} ${WRKSRC}/gtk/lib/gtk${GTK_API_VERSION}-${VERSION}.jar \
        ${JAVAJARDIR}
    ${LN} -sf ${JAVAJARDIR}/gtk${GTK_API_VERSION}-${VERSION}.jar \
        ${JAVAJARDIR}/gtk${GTK_API_VERSION}.jar

post-install:
    @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
        s|%%PREFIX%%|${PREFIX}|g ; \
        s|%%GTK_API_VERSION%%|${GTK_API_VERSION}|g' \
         < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>