freebsd-ports/devel/gnustep-make/Makefile

62 lines
1.5 KiB
Makefile
Raw Normal View History

2001-06-26 13:56:42 +02:00
# New ports collection makefile for: gnustep-make
# Date created: 17 April 2001
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
#
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
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
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= GNUstep makefile package
PREFIX= ${LOCALBASE}/GNUstep
NO_MTREE= yes
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=
USE_GMAKE= yes
USE_GNUSTEP= yes
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
.if defined(GNUSTEP_WITH_BASE_GCC)
GNUSTEP_WITHOUT_LIBOBJC= yes
.endif
.include <bsd.port.pre.mk>
2005-07-10 10:21:08 +02:00
.if !defined(GNUSTEP_WITH_BASE_GCC)
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 \
${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 \
${ECHO_MSG} "libobjc.so not in path"; \
${FALSE}; \
fi; \
2005-07-10 10:21:08 +02:00
fi;
.endif
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
.include <bsd.port.post.mk>