summaryrefslogtreecommitdiff
path: root/editors/apel/Makefile
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-05-10 16:04:29 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-05-10 16:04:29 +0000
commit7190c5d125d51fbd8b13bdf302d988709d88055d (patch)
treee34118192a41bb9b9385bcac58d5eb92fdc13076 /editors/apel/Makefile
parentSet useful variables to SCRIPTS_ENV, PLIST_SUB, MAKE_FLAGS. (diff)
Update to 10.2.
Use EMACS_PORT_NAME and other related variables defined in bsd.emacs.mk.
Diffstat (limited to 'editors/apel/Makefile')
-rw-r--r--editors/apel/Makefile29
1 files changed, 6 insertions, 23 deletions
diff --git a/editors/apel/Makefile b/editors/apel/Makefile
index 4739dd821463..9e8f45366158 100644
--- a/editors/apel/Makefile
+++ b/editors/apel/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
#
-PORTNAME= apel-${EMACS_PORT}
+PORTNAME= apel-${EMACS_PORT_NAME}
PORTVERSION= ${APEL_VER}
CATEGORIES= editors elisp
MASTER_SITES= ftp://ftp.etl.go.jp/pub/mule/apel/ \
@@ -15,7 +15,7 @@ DISTNAME= apel-${APEL_VER}
MAINTAINER?= shige@FreeBSD.org
# distfile version
-APEL_VER= 9.23
+APEL_VER= 10.2
# setupel filename
APEL_SETUPEL= apel-setupel.el
# document install directory by install-doc target
@@ -26,27 +26,16 @@ PORTCLASS?= master
# emacs port setup
.if (${PORTCLASS} == "master")
-EMACS_NAME= emacs
-EMACS_PORT= emacs
-EMACS_VER= 19.34
-EMACS_LIBDIR= share/${EMACS_NAME}
-EMACS_LIBDIR_WITH_VER= ${EMACS_LIBDIR}/${EMACS_VER}
+EMACS_PORT_NAME= emacs
# emacs requires *-setupel.el
REQUIRE_SETUPEL= YES
.endif
+.include <bsd.port.pre.mk>
+
# target name for make build
ALL_TARGET?= elc
-.if defined(EMACS_PORT)
-EMACS_CMD?= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
-BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
-.if defined(HAVE_COMMON_PORT) && (${HAVE_COMMON_PORT} == "YES")
-RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}-common
-.else
-RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT}
-.endif
-
# depends on custom: emacs-19.34 or mule-19.34
.if (${EMACS_VER} == "19.34")
BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT}
@@ -66,12 +55,6 @@ PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL}
MAKE_FLAGS+= EMACS=${EMACS_CMD} XEMACS=${EMACS_CMD}
-.else
-.BEGIN:
- @${ECHO} "Error: Bad port."
- @${ECHO} "You must define EMACS_NAME, EMACS_PORT, EMACS_VER, EMACS_LIBDIR, EMACS_LIBDIR_WITH_VER."
- @${FALSE}
-.endif
pre-configure:
.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES")
@@ -132,4 +115,4 @@ manifest-install:
@${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \
${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>