diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-04-13 15:38:27 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-04-13 15:38:27 +0800 |
commit | 1cc1e7a344cdecd0e5531c227cebca2793a3d2ce (patch) | |
tree | 2c25057c52c347bca7c43e0c4e66c199842afbf3 /lang | |
parent | dd39192df6ad45880ffe9596b55ca7d6bb24f07f (diff) | |
download | freebsd-ports-gnome-1cc1e7a344cdecd0e5531c227cebca2793a3d2ce.tar.gz freebsd-ports-gnome-1cc1e7a344cdecd0e5531c227cebca2793a3d2ce.tar.zst freebsd-ports-gnome-1cc1e7a344cdecd0e5531c227cebca2793a3d2ce.zip |
- Use libobjc.so
- Cleanup
- Use bsd.gnustep.mk
PR: 50479
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gnustep-base/Makefile | 60 |
1 files changed, 12 insertions, 48 deletions
diff --git a/lang/gnustep-base/Makefile b/lang/gnustep-base/Makefile index aba52aef4c0c..7d9aecb09f9e 100644 --- a/lang/gnustep-base/Makefile +++ b/lang/gnustep-base/Makefile @@ -17,22 +17,11 @@ MASTER_SITE_SUBDIR= core MAINTAINER= dinoex@FreeBSD.org COMMENT= GNUstep Foundation library -BUILD_DEPENDS= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall -BUILD_DEPENDS+= ${SYSTEMDIR}/Makefiles/GNUstep.sh:${PORTSDIR}/devel/gnustep-make -LIB_DEPENDS= xml2.5:${PORTSDIR}/textproc/libxml2 -RUN_DEPENDS+= ${SYSTEMDIR}/Makefiles/GNUstep.sh:${PORTSDIR}/devel/gnustep-make - -BREAKS_IF_PEDANTIC= yes -USE_GCC= 3.2 - -.include <bsd.port.pre.mk> - -.if ${OSVERSION} < 300000 -BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x" -.endif +LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 PREFIX= ${LOCALBASE}/GNUstep -PLIST_SUB+= LOCALBASE=${LOCALBASE} +NO_MTREE= yes +ETCDIR= ${LOCALBASE}/etc USE_AUTOCONF= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-procfs @@ -40,47 +29,22 @@ CONFIGURE_TARGET= USE_GMAKE= yes MAKEFILE= MAKE_FLAGS= OPTFLAG="${CFLAGS}" -NO_MTREE= yes CFLAGS+= -I${LOCALBASE}/include/libxml2/libxml +BREAKS_IF_PEDANTIC= yes +PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1} +PLIST_SUB+= LOCALBASE=${LOCALBASE} -.if ${MACHINE_ARCH} == "i386" -GNU_ARCH= ix86 -.else -GNU_ARCH= ${MACHINE_ARCH} -.endif -PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION} \ - MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1} -ETCDIR= ${LOCALBASE}/etc -SYSTEMDIR= ${PREFIX}/System -SYSLIBDIR= ${SYSTEMDIR}/Libraries/${GNU_ARCH}/${OPSYS:L} +.include <bsd.port.pre.mk> + +USE_GNUSTEP_CONFIGURE= yes +USE_GNUSTEP_BUILD= yes +USE_GNUSTEP_INSTALL= yes +.include "${PORTSDIR}/devel/gnustep/bsd.gnustep.mk" post-extract: @${SED} -e "s=%%PREFIX%%=${LOCALBASE}=" ${FILESDIR}/GNUstep.sh \ > ${WRKSRC}/GNUstep.sh -do-configure: - @(cd ${WRKSRC}; . ${SYSTEMDIR}/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}; . ${SYSTEMDIR}/Makefiles/GNUstep.sh; \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}) - -do-install: - @(cd ${WRKSRC}; . ${SYSTEMDIR}/Makefiles/GNUstep.sh; \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) - post-install: -@${MKDIR} ${ETCDIR}/rc.d ${INSTALL_SCRIPT} ${FILESDIR}/GNUstep.sh ${ETCDIR}/rc.d |