aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtoolkit/Makefile
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-06-06 14:12:16 +0800
committerdinoex <dinoex@FreeBSD.org>2002-06-06 14:12:16 +0800
commit8791b8846036757258cd702a09e8ffc4af2b92da (patch)
treed827d7c59f58cd5b685353ffb8212138fc05e996 /x11-toolkits/gtoolkit/Makefile
parent79c778a0f01eacf932f5d698114e0f0cd63b2a1e (diff)
downloadfreebsd-ports-gnome-8791b8846036757258cd702a09e8ffc4af2b92da.tar.gz
freebsd-ports-gnome-8791b8846036757258cd702a09e8ffc4af2b92da.tar.zst
freebsd-ports-gnome-8791b8846036757258cd702a09e8ffc4af2b92da.zip
New Port: GToolKit
GToolKit is a (relatively) small library that implements a simple and easy to use Objective-C interface to the GTK+ widget set. Well, the library in itself does not do very much, of course. It just allows you to write your favourite program in my favourite programming language - Fix dependencies and missing defines - do configure in configure step - make portlint happy - use variables in plist - honor it does install in Local, not in System PR: 33843 Submitted by: flynn@energyhq.homeip.net
Diffstat (limited to 'x11-toolkits/gtoolkit/Makefile')
-rw-r--r--x11-toolkits/gtoolkit/Makefile71
1 files changed, 71 insertions, 0 deletions
diff --git a/x11-toolkits/gtoolkit/Makefile b/x11-toolkits/gtoolkit/Makefile
new file mode 100644
index 000000000000..03d5a55e3642
--- /dev/null
+++ b/x11-toolkits/gtoolkit/Makefile
@@ -0,0 +1,71 @@
+# New ports collection makefile for: gtoolkit
+# Date created: 13 Jan 2002
+# Whom: Miguel Mendez <flynn@energyhq.homeip.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtoolkit
+PORTVERSION= 0.9.4
+CATEGORIES= x11-toolkits
+MASTER_SITES= ftp://ftp.inf.uos.de/pub/elmar/gtk/objc-gtoolkit/
+
+MAINTAINER= flynn@energyhq.homeip.net
+
+BUILD_DEPENDS= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/lang/gnustep-base
+RUN_DEPENDS= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/lang/gnustep-base
+
+PREFIX= ${LOCALBASE}/GNUstep
+USE_NEWGCC= yes
+USE_GMAKE= yes
+USE_GTK= yes
+GNU_CONFIGURE= yes
+NO_MTREE= yes
+
+MAKE_ARGS= GNUSTEP_SYSTEM_ROOT=$(PREFIX)/System
+CONFIGURE_ARGS+= --with-gnustep
+INSTALLS_SHLIB= yes
+WRKSRC= ${WRKDIR}/${DISTNAME}/GToolKit
+CONFIGURE_WRKSRC= ${WRKDIR}/${DISTNAME}
+
+post-patch:
+ @${PERL} -pi -e 's#gtk-config#gtk12-config#g' \
+ ${WRKDIR}/${DISTNAME}/configure
+
+do-configure:
+ @(cd ${CONFIGURE_WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
+ if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
+ INSTALL_DATA="${INSTALL} -c" \
+ INSTALL_PROGRAM="${INSTALL} -c" \
+ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
+ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \
+ ${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \
+ ${CAT} ${CONFIGURE_LOG}; \
+ ${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \
+ ${FALSE}; \
+ fi)
+
+do-build:
+ @(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
+
+do-install:
+ @(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
+
+.include <bsd.port.pre.mk>
+
+.if ${MACHINE_ARCH} == "i386"
+GNU_ARCH= ix86
+.else
+GNU_ARCH= ${MACHINE_ARCH}
+.endif
+PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION}
+
+SYSTEMDIR= ${PREFIX}/System
+SYSLIBDIR= ${SYSTEMDIR}/Libraries/${GNU_ARCH}/${OPSYS:L}
+COMBOLIBDIR= ${SYSLIBDIR}/gnu-gnu-gnu
+
+.include <bsd.port.post.mk>