2001-06-26 13:59:02 +02:00
|
|
|
# New ports collection makefile for: gnustep-base
|
|
|
|
# Date created: 17 April 2001
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1999-05-10 13:32:03 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1999-05-10 13:32:03 +02:00
|
|
|
#
|
|
|
|
|
2001-06-26 13:59:02 +02:00
|
|
|
PORTNAME= gnustep-base
|
2005-04-18 06:37:31 +02:00
|
|
|
PORTVERSION= 1.10.3
|
2001-06-26 13:59:02 +02:00
|
|
|
CATEGORIES= lang devel
|
2004-01-31 13:16:18 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
|
2002-12-07 08:48:20 +01:00
|
|
|
MASTER_SITE_SUBDIR= core
|
1999-05-10 13:32:03 +02:00
|
|
|
|
2002-06-07 19:34:38 +02:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 19:26:42 +01:00
|
|
|
COMMENT= GNUstep Foundation library
|
1999-05-10 13:32:03 +02:00
|
|
|
|
2003-04-13 09:38:27 +02:00
|
|
|
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
|
2004-11-07 22:43:55 +01:00
|
|
|
LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt
|
|
|
|
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
|
1999-05-10 13:32:03 +02:00
|
|
|
|
|
|
|
PREFIX= ${LOCALBASE}/GNUstep
|
2003-04-13 09:38:27 +02:00
|
|
|
NO_MTREE= yes
|
|
|
|
ETCDIR= ${LOCALBASE}/etc
|
2004-11-07 22:43:55 +01:00
|
|
|
USE_AUTOCONF_VER= 259
|
1999-05-10 13:32:03 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2001-06-26 13:59:02 +02:00
|
|
|
CONFIGURE_ARGS= --disable-procfs
|
2000-08-23 12:49:48 +02:00
|
|
|
CONFIGURE_TARGET=
|
1999-05-10 13:32:03 +02:00
|
|
|
USE_GMAKE= yes
|
2003-08-28 03:42:30 +02:00
|
|
|
USE_GNUSTEP= yes
|
|
|
|
USE_GNUSTEP_CONFIGURE= yes
|
|
|
|
USE_GNUSTEP_BUILD= yes
|
|
|
|
USE_GNUSTEP_INSTALL= yes
|
2005-04-03 07:22:07 +02:00
|
|
|
USE_ICONV= yes
|
1999-05-10 13:32:03 +02:00
|
|
|
MAKEFILE=
|
|
|
|
MAKE_FLAGS= OPTFLAG="${CFLAGS}"
|
2002-06-04 08:46:03 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include/libxml2/libxml
|
2003-04-13 09:38:27 +02:00
|
|
|
BREAKS_IF_PEDANTIC= yes
|
2004-11-07 22:43:55 +01:00
|
|
|
NO_FILTER_SHLIBS= yes
|
2003-04-13 09:38:27 +02:00
|
|
|
PLIST_SUB+= LOCALBASE=${LOCALBASE}
|
1999-09-09 12:25:57 +02:00
|
|
|
|
2003-10-19 13:13:22 +02:00
|
|
|
.if defined(WITHOUT_OPENSSL)
|
|
|
|
CONFIGURE_ARGS+= --disable-openssl
|
2004-03-05 16:00:40 +01:00
|
|
|
PLIST_SUB+= OPENSSL="@comment "
|
2003-10-19 13:13:22 +02:00
|
|
|
.else
|
|
|
|
USE_OPENSSL= yes
|
2004-03-05 16:00:40 +01:00
|
|
|
PLIST_SUB+= OPENSSL=""
|
|
|
|
MAKE_APPS= SSL
|
|
|
|
INSTALL_APPS= SSL
|
2003-10-19 13:13:22 +02:00
|
|
|
.endif
|
|
|
|
|
2005-06-03 09:52:42 +02:00
|
|
|
.if defined(WITH_GNUSTEP_FAKEMAIN)
|
|
|
|
CONFIGURE_ARGS+= --enable-fake-main
|
|
|
|
.endif
|
|
|
|
|
2004-11-07 22:43:55 +01:00
|
|
|
PLIST_SUB+= BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
|
2004-06-16 18:36:40 +02:00
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/NSFileManager.m.patch
|
|
|
|
|
2003-04-13 09:38:27 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-08-12 07:11:59 +02:00
|
|
|
PATH:= ${PREFIX}/System/Tools:${PATH}
|
2003-04-21 11:29:38 +02:00
|
|
|
|
2005-06-03 09:52:42 +02:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
|
|
|
pre-configure:
|
|
|
|
${LDCONFIG} -m ${TARGLIB}
|
|
|
|
.endif
|
|
|
|
|
2004-03-05 16:00:40 +01:00
|
|
|
post-build:
|
|
|
|
.for i in ${MAKE_APPS}
|
|
|
|
(cd ${WRKSRC}/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
|
|
|
|
.endfor
|
|
|
|
|
2002-08-09 05:25:48 +02:00
|
|
|
post-extract:
|
2003-04-21 11:29:38 +02:00
|
|
|
@${SED} -e "s=%%PREFIX%%=${LOCALBASE}=" \
|
|
|
|
-e "s=%%TARGLIB%%=${TARGLIB}=" ${FILESDIR}/GNUstep.sh \
|
2002-08-09 05:25:48 +02:00
|
|
|
> ${WRKSRC}/GNUstep.sh
|
|
|
|
|
2000-09-21 14:01:41 +02:00
|
|
|
post-install:
|
2002-08-09 05:25:48 +02:00
|
|
|
-@${MKDIR} ${ETCDIR}/rc.d
|
2003-07-27 09:06:21 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/GNUstep.sh ${ETCDIR}/rc.d/GNUstep.sh
|
2000-09-21 14:01:41 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/gdomap_if ${ETCDIR}
|
2004-03-05 16:00:40 +01:00
|
|
|
.for i in ${INSTALL_APPS}
|
|
|
|
(cd ${WRKSRC}/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} -d ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
|
|
|
|
.endfor
|
2004-11-07 22:43:55 +01:00
|
|
|
${RM} ${PREFIX}/System/Library/Libraries/libgnustep-base.so
|
|
|
|
${LN} -s libgnustep-base.so.${PORTVERSION} \
|
|
|
|
${PREFIX}/System/Library/Libraries/libgnustep-base.so
|
2000-09-21 14:01:41 +02:00
|
|
|
|
2002-12-09 17:07:45 +01:00
|
|
|
test:
|
|
|
|
@(cd ${WRKSRC}/Testing && . ${SYSTEMDIR}/Makefiles/GNUstep.sh; ${GMAKE})
|
|
|
|
|
1999-05-10 13:32:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|