5cb0320f5e
OpenStep Foundation API
45 lines
1.5 KiB
Makefile
45 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2005/04/24 02:48:06 rh Exp $
|
|
#
|
|
|
|
DISTNAME= libFoundation-1.0.72-r107
|
|
PKGNAME= ${DISTNAME:S/-r/./}
|
|
CATEGORIES= devel gnustep
|
|
MASTER_SITES= ftp://ftp.opengroupware.org/sources/releases/ \
|
|
http://www.opengroupware.org/sources/releases/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://www.opengroupware.org/en/devs/thirdparty/libFoundation/
|
|
COMMENT= Library implementing the OpenStep Foundation API
|
|
|
|
WRKSRC= ${WRKDIR}/libfoundation
|
|
|
|
GNU_CONFIGURE= yes
|
|
MAKE_ENV+= ADDITIONAL_OBJCFLAGS="-I${WRKSRC} -I."
|
|
MAKE_ENV+= FOUNDATION_LIB="fd"
|
|
|
|
PLIST_SUBST+= GNUSTEP_HOST_CPU=${GNUSTEP_HOST_CPU}
|
|
|
|
LIBF_HOST_OS= ${GNUSTEP_HOST:C/.*-//}
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKSRC}/config/${MACHINE_GNU_ARCH}
|
|
[ -e ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${GNUSTEP_HOST_OS}.h ] || \
|
|
${LN} -s linux.h ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${GNUSTEP_HOST_OS}.h
|
|
[ -e ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${LIBF_HOST_OS}.h ] || \
|
|
${LN} -s linux.h ${WRKSRC}/config/${MACHINE_GNU_ARCH}/${LIBF_HOST_OS}.h
|
|
|
|
post-configure:
|
|
[ -e ${WRKSRC}/Foundation/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS} ] || \
|
|
${LN} -s \
|
|
${WRKSRC}/Foundation/${GNUSTEP_HOST_CPU}/${LIBF_HOST_OS} \
|
|
${WRKSRC}/Foundation/${GNUSTEP_HOST_CPU}/${GNUSTEP_HOST_OS}
|
|
|
|
.include "../../mk/compiler.mk"
|
|
|
|
.if empty(CC_VERSION:Mgcc-3*)
|
|
.include "../../devel/gnustep-objc/buildlink3.mk"
|
|
.endif
|
|
.include "../../devel/gnustep-make/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|