2011-04-07 03:41:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.51 2011/04/07 01:41:31 rh Exp $
|
2002-09-27 12:40:16 +02:00
|
|
|
|
2011-04-07 03:41:31 +02:00
|
|
|
DISTNAME= gnustep-make-2.4.0
|
2003-12-05 10:16:33 +01:00
|
|
|
CATEGORIES= devel gnustep
|
2005-05-24 19:20:00 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUSTEP:=core/}
|
2002-09-27 12:40:16 +02:00
|
|
|
|
2003-12-05 10:16:33 +01:00
|
|
|
MAINTAINER= rh@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.gnustep.org/
|
|
|
|
COMMENT= GNUstep makefile package
|
2009-05-19 10:59:00 +02:00
|
|
|
LICENSE= gnu-gpl-v3
|
2002-09-27 12:40:16 +02:00
|
|
|
|
2009-04-13 14:09:25 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2004-03-31 21:20:26 +02:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2007-11-25 15:42:01 +01:00
|
|
|
USE_LANGUAGES= objc
|
|
|
|
USE_TOOLS+= csh
|
2006-01-17 08:35:55 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= INSTALL_PROGRAM=${INSTALL_SCRIPT:Q}
|
2006-07-31 12:35:38 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-importing-config-file
|
2009-04-13 14:09:25 +02:00
|
|
|
CONFIGURE_ARGS+= --with-layout=fhs
|
2008-03-08 23:02:32 +01:00
|
|
|
CONFIGURE_ARGS+= --with-config-file=${PKG_SYSCONFDIR}/GNUstep.conf
|
2006-09-16 23:47:43 +02:00
|
|
|
MAKE_FILE= GNUmakefile
|
2004-04-11 01:31:39 +02:00
|
|
|
|
2006-03-03 08:24:10 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/GNUstep/GNUstep.conf \
|
2007-06-28 05:00:39 +02:00
|
|
|
${PKG_SYSCONFDIR}/GNUstep.conf
|
2006-03-03 08:24:10 +01:00
|
|
|
|
2009-04-13 14:09:25 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
2009-06-13 08:46:41 +02:00
|
|
|
PTHREAD_LIBS+= -lpth
|
2009-04-13 14:09:25 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --with-thread-lib=${PTHREAD_LIBS:Q}
|
2006-08-13 12:12:27 +02:00
|
|
|
|
2004-04-11 01:31:39 +02:00
|
|
|
.include "gnustep.mk"
|
2002-09-27 12:40:16 +02:00
|
|
|
|
2006-07-28 03:50:58 +02:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
GNUSTEP_ARCH= ix86
|
|
|
|
.else
|
|
|
|
GNUSTEP_ARCH= ${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
PLIST_SUBST+= GNUSTEP_ARCH=${GNUSTEP_ARCH}
|
|
|
|
|
2006-01-17 08:35:55 +01:00
|
|
|
SUBST_CLASSES+= target
|
|
|
|
SUBST_STAGE.target= post-patch
|
|
|
|
SUBST_FILES.target= target.make
|
2009-04-13 14:09:25 +02:00
|
|
|
SUBST_SED.target+= -e 's|/usr/pkg|${PREFIX}|g'
|
|
|
|
|
|
|
|
SUBST_CLASSES+= maninfo
|
|
|
|
SUBST_STAGE.maninfo= pre-configure
|
|
|
|
SUBST_MESSAGE.maninfo= Fixing man directory references.
|
|
|
|
SUBST_FILES.maninfo= ${WRKSRC}/FilesystemLayouts/fhs
|
|
|
|
SUBST_SED.maninfo= -e 's|share/man|${PKGMANDIR}|'
|
|
|
|
SUBST_SED.maninfo+= -e 's|share/info|${PKGINFODIR}|'
|
|
|
|
|
2009-04-19 02:50:11 +02:00
|
|
|
INSTALLATION_DIRS+= share/GNUstep/Library
|
2009-04-13 14:09:25 +02:00
|
|
|
INSTALLATION_DIRS+= share/GNUstep/Makefiles/${GNUSTEP_ARCH}
|
|
|
|
INSTALLATION_DIRS+= share/GNUstep/Makefiles/Additional
|
|
|
|
INSTALLATION_DIRS+= share/GNUstep/Makefiles/Auxiliary
|
2003-12-08 16:31:40 +01:00
|
|
|
|
2002-09-27 12:40:16 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|