1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/devel/projectcenter.app/Makefile
Dirk Meyer 9ff4790bc0 - use MASTER_SITE_GNUSTEP
- New package description
2003-03-23 05:02:08 +00:00

66 lines
2.0 KiB
Makefile

# New ports collection makefile for: ProjectCenter
# Date created: 22 Sep 2000
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= projectcenter.app
PORTVERSION= 0.3.2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNUSTEP} \
ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/
DISTNAME= ProjectCenter-${PORTVERSION}
MASTER_SITE_SUBDIR= dev-apps
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A development environment for GNUstep
BUILD_DEPENDS= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/x11-toolkits/gnustep-back
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall
RUN_DEPENDS= ${BACKBUNDLEDIR}/libgnustep-back:${PORTSDIR}/x11-toolkits/gnustep-back
PREFIX= ${LOCALBASE}/GNUstep
WRKSRC= ${WRKDIR}/ProjectCenter
USE_GMAKE= yes
MAKEFILE= GNUmakefile
MAKE_ENV= ADDITIONAL_INCLUDE_DIRS="-I${WRKSRC}" \
ADDITIONAL_LIB_DIRS="-L${WRKSRC}/PCLib/shared_obj/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu"
ALL_TARGET=
NO_MTREE= yes
USE_GCC= 3.2
BACKBUNDLEDIR= ${PREFIX}/System/Library/Bundles/libgnustep-back.bundle/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu
.include <bsd.port.pre.mk>
.if ${MACHINE_ARCH} == "i386"
GNU_ARCH= ix86
.else
GNU_ARCH= ${MACHINE_ARCH}
.endif
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION}
# XXX This is ugly beyond measure. Don't tell anyone I did this.
post-extract:
${LN} -sf ${WRKSRC}/PCLib/*.h ${WRKSRC}/ProjectCenter
# Quick workaround until I find out how to set the real path in the code
post-patch:
.for file in PCLib/PCBundleLoader.m ProjectCenter/PCAppController.m
@${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.sed
${SED} -e "s=@\"/usr/GNUstep=@\"${PREFIX}=g" \
${WRKSRC}/${file}.sed > ${WRKSRC}/${file}
.endfor
do-build:
@(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
do-install:
@(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
.include <bsd.port.post.mk>