blob: 9ad9d6ab2e3bc905606f14dfbc3ca2481c9a16e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# New ports collection makefile for: emacs.app
# Date created: 4 Sep 2006
# Whom: gurkan@phys.ethz.ch
#
# $FreeBSD$
#
PORTNAME= emacs.app
PORTVERSION= 9.0
PORTREVISION= 3
CATEGORIES= editors gnustep
MASTER_SITES= SF/emacs-app/emacs-app/${PORTVERSION}-pre3
DISTNAME= emacs-23.0.0_NS-${PORTVERSION}pre3b
MAINTAINER= ports@FreeBSD.org
COMMENT= The GNU Emacs editor on GNUstep
LICENSE= GPLv2
DEPRECATED= API no longer supported
EXPIRATION_DATE= 2012-07-20
USE_GNUSTEP= yes
USE_GNUSTEP_CONFIGURE= yes
USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
USE_GNUSTEP_BACK= yes
USE_GNUSTEP_MAKE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
CPPFLAGS+= -I${GNUSTEP_SYSTEM_ROOT}/Library/Headers
CFLAGS+= -I${GNUSTEP_SYSTEM_ROOT}/Library/Headers
LDFLAGS+= -L${GNUSTEP_SYSTEM_ROOT}/Library/Libraries
CONFIGURE_ENV+= MAKE="${GMAKE}"
CONFIGURE_ENV+= GNUSTEP_SYSTEM_HEADERS="${GNUSTEP_SYSTEM_ROOT}/Library/Headers"
BASEDIR= ${WRKSRC}/nextstep/build/Emacs.app
CONFIGURE_ARGS+= --without-gcc --with-ns --without-x --with-pop \
--prefix=${BASEDIR}/Resources --exec-prefix=${BASEDIR} --libexecdir=${BASEDIR}/libexec \
${CONFIGURE_TARGET}
USE_GMAKE= yes
USE_MAKEFILE= yes
MAKE_ENV+= MAKE="${GMAKE}" EMACSLOADPATH="${WRKSRC}/lisp:${WRKSRC}/leim"
MAKE_ENV+= GNUSTEP_SYSTEM_HEADERS="${GNUSTEP_SYSTEM_ROOT}/Library/Headers"
post-patch:
${MV} ${WRKSRC}/lib-src/Makefile.in ${WRKSRC}/lib-src/Makefile.in.orig
${AWK} '/\\$$/ { printf("%s",$$0); next}; {print}' < ${WRKSRC}/lib-src/Makefile.in.orig > ${WRKSRC}/lib-src/Makefile.in
${REINPLACE_CMD} -e 's|\\ | |g' -e 's|\\ | |g' ${WRKSRC}/lib-src/Makefile.in
${MV} ${WRKSRC}/src/Makefile.in ${WRKSRC}/src/Makefile.in.tmp
${AWK} '/\\$$/ { printf("%s",$$0); next}; {print}' < ${WRKSRC}/src/Makefile.in.tmp > ${WRKSRC}/src/Makefile.in
${REINPLACE_CMD} -e 's|\\ | |g' -e 's|\\ | |g' ${WRKSRC}/src/Makefile.in
post-configure:
@${REINPLACE_CMD} -e 's|#define config_machfile "m/.h"|#define config_machfile "m/sparc.h"|g' ${WRKSRC}/src/config.h
post-install:
cd ${BASEDIR}/Resources && ${MV} -f share/emacs/*/* .
cd ${BASEDIR}/Resources && ${RM} -fr share
cd ${BASEDIR}/bin && ${RM} -f emacs emacs-23*
cd ${BASEDIR}/libexec && ${MV} -f emacs/*/*/* .
cd ${BASEDIR}/libexec && ${RM} -fr emacs
${CP} -r ${WRKSRC}/nextstep/build/Emacs.app ${GNUSTEP_PREFIX}/System/Applications/
.if defined(PACKAGE_BUILDING) || defined(BATCH) || defined(CLEAN_ROOT)
${RM} -rf /root/GNUstep
.endif
.include <bsd.port.mk>
|