freebsd-ports/lang/gnustep-base/Makefile
Ade Lovett 54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00

93 lines
2.3 KiB
Makefile

# New ports collection makefile for: gnustep-base
# Date created: 17 April 2001
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gnustep-base
PORTVERSION= 1.11.1
CATEGORIES= lang devel
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= core
MAINTAINER= dinoex@FreeBSD.org
COMMENT= GNUstep Foundation library
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2
LIB_DEPENDS+= xslt.2:${PORTSDIR}/textproc/libxslt
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4
PREFIX= ${LOCALBASE}/GNUstep
NO_MTREE= yes
ETCDIR= ${LOCALBASE}/etc
USE_AUTOTOOLS= autoconf:259
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-procfs
CONFIGURE_TARGET=
USE_GMAKE= yes
USE_GNUSTEP= yes
USE_GNUSTEP_CONFIGURE= yes
USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
USE_ICONV= yes
MAKEFILE=
MAKE_FLAGS= OPTFLAG="${CFLAGS}"
CFLAGS+= -I${LOCALBASE}/include/libxml2/libxml
BREAKS_IF_PEDANTIC= yes
NO_FILTER_SHLIBS= yes
PLIST_SUB+= LOCALBASE=${LOCALBASE}
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --disable-openssl
PLIST_SUB+= OPENSSL="@comment "
.else
USE_OPENSSL= yes
PLIST_SUB+= OPENSSL=""
MAKE_APPS= SSL
INSTALL_APPS= SSL
.endif
.if defined(WITH_GNUSTEP_FAKEMAIN)
CONFIGURE_ARGS+= --enable-fake-main
.endif
PLIST_SUB+= BASEVERSION=${PORTVERSION:C/[.][0-9]*$//1}
EXTRA_PATCHES+= ${FILESDIR}/NSFileManager.m.patch
.include <bsd.port.pre.mk>
PATH:= ${PREFIX}/System/Tools:${PATH}
.if !defined(GNUSTEP_WITH_BASE_GCC)
pre-configure:
${LDCONFIG} -m ${TARGLIB}
.endif
post-build:
.for i in ${MAKE_APPS}
(cd ${WRKSRC}/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
.endfor
post-extract:
@${SED} -e "s=%%PREFIX%%=${LOCALBASE}=" \
-e "s=%%TARGLIB%%=${TARGLIB}=" ${FILESDIR}/GNUstep.sh \
> ${WRKSRC}/GNUstep.sh
post-install:
-@${MKDIR} ${ETCDIR}/rc.d
${INSTALL_SCRIPT} ${WRKSRC}/GNUstep.sh ${ETCDIR}/rc.d/GNUstep.sh
${INSTALL_DATA} ${FILESDIR}/gdomap_if ${ETCDIR}
.for i in ${INSTALL_APPS}
(cd ${WRKSRC}/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} -d ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
.endfor
${RM} ${PREFIX}/System/Library/Libraries/libgnustep-base.so
${LN} -s libgnustep-base.so.${PORTVERSION} \
${PREFIX}/System/Library/Libraries/libgnustep-base.so
test:
@(cd ${WRKSRC}/Testing && . ${SYSTEMDIR}/Makefiles/GNUstep.sh; ${GMAKE})
.include <bsd.port.post.mk>