diff options
author | shige <shige@FreeBSD.org> | 1999-09-10 23:35:39 +0800 |
---|---|---|
committer | shige <shige@FreeBSD.org> | 1999-09-10 23:35:39 +0800 |
commit | c882251e2ff6950bc07995b96fc898cf020d05c9 (patch) | |
tree | 9ac4146e49af18f148757b4ab376e2bb03e44a7b /editors/apel-emacs | |
parent | bbe589e2e375e3a8a63366f39c901170c0c3b872 (diff) | |
download | freebsd-ports-gnome-c882251e2ff6950bc07995b96fc898cf020d05c9.tar.gz freebsd-ports-gnome-c882251e2ff6950bc07995b96fc898cf020d05c9.tar.zst freebsd-ports-gnome-c882251e2ff6950bc07995b96fc898cf020d05c9.zip |
Fix for xemacs-mule-21.1.6.
apel package should be compatible with xemacs-package on xemacs-21.x.
Diffstat (limited to 'editors/apel-emacs')
-rw-r--r-- | editors/apel-emacs/Makefile | 45 |
1 files changed, 29 insertions, 16 deletions
diff --git a/editors/apel-emacs/Makefile b/editors/apel-emacs/Makefile index cfb84bd18f10..1c261b890b64 100644 --- a/editors/apel-emacs/Makefile +++ b/editors/apel-emacs/Makefile @@ -15,8 +15,10 @@ MAINTAINER?= shige@FreeBSD.org # distfile version APEL_VER= 9.20 +# setupel filename APEL_SETUPEL= apel-setupel.el -APELDOCDIR= share/doc/apel +# document install directory by install-doc target +APELDOCDIR?= share/doc/apel # This is a master port. PORTCLASS?= master @@ -35,15 +37,6 @@ REQUIRE_SETUPEL= YES # target name for make build ALL_TARGET?= elc -# if RUN_DEPENDS emacs port name has the suffix `-common' -.if !defined(HAVE_COMMON_PORT) -HAVE_COMMON_PORT= NO -.endif -# if RUN_DEPENDS emacs needs setup elisp -.if !defined(REQUIRE_SETUPEL) -REQUIRE_SETUPEL= NO -.endif - .if defined(EMACS_PORT) PKGNAME= apel-${EMACS_PORT}-${APEL_VER} EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER} @@ -60,11 +53,13 @@ BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDI RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp/custom.el:${PORTSDIR}/editors/custom-${EMACS_PORT} .endif -SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \ +SCRIPTS_ENV+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \ EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \ + EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \ TARGETS="${APEL_SETUPEL}" -PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \ +PLIST_SUB+= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \ EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \ + EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \ APELDOCDIR=${APELDOCDIR} APEL_SETUPEL=${APEL_SETUPEL} MAKE_FLAGS+= EMACS=${EMACS_CMD} .else @@ -74,22 +69,40 @@ MAKE_FLAGS+= EMACS=${EMACS_CMD} @${FALSE} .endif -.if (${REQUIRE_SETUPEL} == "YES") pre-configure: +.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES") @${CP} ${FILESDIR}/${APEL_SETUPEL}.in ${WRKDIR} .endif post-install: +.if defined(REQUIRE_SETUPEL) && (${REQUIRE_SETUPEL} == "YES") + @${MAKE} setupel-install +.endif +.if defined(EMACS_PACKAGESDIR) && defined(MANIFEST) + @${MAKE} manifest-install +.endif .if !defined(NOPORTDOCS) + @${MAKE} doc-install +.endif + + +# install functions +doc-install: @${MKDIR} ${PREFIX}/${APELDOCDIR} @(cd ${WRKSRC} ; \ for i in ChangeLog README.* ; do \ ${INSTALL_DATA} $${i} ${PREFIX}/${APELDOCDIR}/ ; \ done) -.endif -.if (${REQUIRE_SETUPEL} == "YES") + +setupel-install: @${INSTALL_DATA} ${WRKDIR}/${APEL_SETUPEL} \ ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp -.endif + +manifest-install: + @${RM} -f ${WRKDIR}/${MANIFEST} + @${CAT} ${PKGDIR}/PLIST | ${GREP} -e "^%%EMACS_PACKAGESDIR%%" | \ + ${SED} -e "s;^%%EMACS_PACKAGESDIR%%/;;" > ${WRKDIR}/${MANIFEST} + @${INSTALL_DATA} ${WRKDIR}/${MANIFEST} \ + ${PREFIX}/${EMACS_PACKAGESDIR}/pkginfo/ .include <bsd.port.mk> |