2001-06-26 13:56:42 +02:00
|
|
|
# New ports collection makefile for: gnustep-make
|
|
|
|
# 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:56:42 +02:00
|
|
|
PORTNAME= gnustep-make
|
2005-12-24 22:40:02 +01:00
|
|
|
PORTVERSION= 1.11.2
|
2005-12-26 00:08:56 +01:00
|
|
|
PORTREVISION= 1
|
1999-05-10 13:32:03 +02:00
|
|
|
CATEGORIES= devel
|
2004-01-31 13:16:18 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUSTEP}
|
2002-12-23 23:18:39 +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 makefile package
|
1999-05-10 13:32:03 +02:00
|
|
|
|
|
|
|
PREFIX= ${LOCALBASE}/GNUstep
|
2003-04-13 08:58:39 +02:00
|
|
|
NO_MTREE= yes
|
1999-05-10 13:32:03 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2002-01-23 13:55:37 +01:00
|
|
|
CONFIGURE_ENV= INSTALL_PROGRAM="${INSTALL} -c" INSTALL_DATA="${INSTALL} -c" \
|
2003-10-19 13:09:19 +02:00
|
|
|
CFLAGS="${CFLAGS}"
|
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
|
1999-05-10 13:32:03 +02:00
|
|
|
MAKEFILE=
|
|
|
|
MAKE_FLAGS= OPTFLAG="${CFLAGS}"
|
2003-10-19 13:09:19 +02:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
2004-11-07 22:43:55 +01:00
|
|
|
CONFIGURE_ARGS+= --with-thread-lib="${PTHREAD_LIBS}"
|
2005-12-26 00:08:56 +01:00
|
|
|
CONFIGURE_ARGS+= --with-config-file=${PREFIX}/GNUstep.conf
|
2003-07-26 16:38:59 +02:00
|
|
|
|
2004-04-13 21:08:41 +02:00
|
|
|
.if defined(GNUSTEP_WITH_BASE_GCC)
|
|
|
|
GNUSTEP_WITHOUT_LIBOBJC= yes
|
|
|
|
.endif
|
|
|
|
|
2004-12-14 06:16:10 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-07-10 10:21:08 +02:00
|
|
|
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
2004-12-14 06:16:10 +01:00
|
|
|
pre-configure:
|
|
|
|
@if test ! -f "${TARGLIB}/libobjc.so"; then \
|
|
|
|
${ECHO_MSG} "libobjc.so not found, please update your gcc"; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi; \
|
2005-07-10 10:21:08 +02:00
|
|
|
if test `${LDCONFIG} -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
|
2004-12-14 06:16:10 +01:00
|
|
|
${ECHO_MSG} "trying to fix ldconfig.hints"; \
|
|
|
|
${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -m "${TARGLIB}";\
|
2005-07-10 10:21:08 +02:00
|
|
|
if test `${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
|
2004-12-14 06:16:10 +01:00
|
|
|
${ECHO_MSG} "libobjc.so not in path"; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi; \
|
2005-07-10 10:21:08 +02:00
|
|
|
fi;
|
|
|
|
.endif
|
|
|
|
|
2005-08-19 18:43:16 +02:00
|
|
|
post-install:
|
|
|
|
${LN} -s Library/Makefiles ${PREFIX}/System/
|
|
|
|
|
2005-07-10 10:21:08 +02:00
|
|
|
.if defined(PARALLEL_PACKAGE_BUILD)
|
|
|
|
NO_PACKAGE= yes
|
|
|
|
.endif
|
2004-12-14 06:16:10 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|