aboutsummaryrefslogtreecommitdiffstats
path: root/editors/bitmap-emacs20
diff options
context:
space:
mode:
authorshige <shige@FreeBSD.org>2000-07-17 10:40:09 +0800
committershige <shige@FreeBSD.org>2000-07-17 10:40:09 +0800
commit35f32ab023822671603f1d0b3a69742de7aa32f6 (patch)
treec9e2cc572011103d7d999af593d4b008915304c8 /editors/bitmap-emacs20
parent9e16150c079eb1101b31ebc3d66afad41cf2a1f1 (diff)
downloadfreebsd-ports-gnome-35f32ab023822671603f1d0b3a69742de7aa32f6.tar.gz
freebsd-ports-gnome-35f32ab023822671603f1d0b3a69742de7aa32f6.tar.zst
freebsd-ports-gnome-35f32ab023822671603f1d0b3a69742de7aa32f6.zip
Convert into EMACS_PORT_NAME style port.
Diffstat (limited to 'editors/bitmap-emacs20')
-rw-r--r--editors/bitmap-emacs20/Makefile36
-rw-r--r--editors/bitmap-emacs20/pkg-descr2
2 files changed, 20 insertions, 18 deletions
diff --git a/editors/bitmap-emacs20/Makefile b/editors/bitmap-emacs20/Makefile
index c3c97540f6ac..210bd83f7dec 100644
--- a/editors/bitmap-emacs20/Makefile
+++ b/editors/bitmap-emacs20/Makefile
@@ -5,11 +5,12 @@
# $FreeBSD$
#
-PORTNAME= bitmap-${EMACS_PORT_NAME}
+PORTNAME= bitmap
PORTVERSION= ${BITMAP_VER}
CATEGORIES= editors elisp
MASTER_SITES= ftp://ftp.jpl.org/pub/elisp/bitmap/
DISTNAME= bitmap-mule-${BITMAP_VER}
+PKGNAMESUFFIX= -${EMACS_PORT_NAME}
MAINTAINER= shige@FreeBSD.org
@@ -24,29 +25,30 @@ EMACS_PORT_NAME= emacs20
# target name for make build
ALL_TARGET= elc
-EMACS_CMD= ${PREFIX}/bin/${EMACS_NAME}-${EMACS_VER}
-BUILD_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME} \
- uncompface:${PORTSDIR}/mail/faces
-RUN_DEPENDS= ${EMACS_CMD}:${PORTSDIR}/editors/${EMACS_PORT_NAME} \
- ${BITMAP_FONT}:${PORTSDIR}/x11-fonts/bitmap-font
-SCRIPTS_ENV= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
- EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER}
-PLIST_SUB= EMACS_LIBDIR=${EMACS_LIBDIR} EMACS_VER=${EMACS_VER} \
- EMACS_LIBDIR_WITH_VER=${EMACS_LIBDIR_WITH_VER} \
- BITMAPDOCDIR=${BITMAPDOCDIR}
-MAKE_FLAGS= EMACS=${EMACS_CMD}
+BUILD_DEPENDS= uncompface:${PORTSDIR}/mail/faces
+RUN_DEPENDS= ${BITMAP_FONT}:${PORTSDIR}/x11-fonts/bitmap-font
+PLIST_SUB= BITMAPDOCDIR=${BITMAPDOCDIR}
+.include <bsd.port.pre.mk>
+
+.if defined(EMACS_PORT_NAME)
# depends on apel
-BUILD_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
-RUN_DEPENDS+= ${PREFIX}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
+BUILD_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
+RUN_DEPENDS+= ${LOCALBASE}/${EMACS_LIBDIR}/${EMACS_VER}/site-lisp/emu/emu.el:${PORTSDIR}/editors/apel-${EMACS_PORT_NAME}
+.else
+.BEGIN:
+ @${ECHO} "Error: Bad port."
+ @${ECHO} "You must define EMACS_PORT_NAME."
+ @${FALSE}
+.endif
post-install:
.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/${BITMAPDOCDIR}
+ @${MKDIR} ${LOCALBASE}/${BITMAPDOCDIR}
@(cd ${WRKSRC} ; \
for i in ChangeLog NEWS README.* ; do \
- ${INSTALL_DATA} ${WRKSRC}/$${i} ${PREFIX}/${BITMAPDOCDIR}/ ; \
+ ${INSTALL_DATA} ${WRKSRC}/$${i} ${LOCALBASE}/${BITMAPDOCDIR}/ ; \
done)
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/editors/bitmap-emacs20/pkg-descr b/editors/bitmap-emacs20/pkg-descr
index 714d6a714511..9073ffc9d4db 100644
--- a/editors/bitmap-emacs20/pkg-descr
+++ b/editors/bitmap-emacs20/pkg-descr
@@ -13,6 +13,6 @@ Bitmap-mule, Package to use bitmap in Emacs20.
- vm-bitmap.el: VM related functions for x-face-mule.el
Bitmap-mule is installed the following directory tree:
- ${PREFIX}/share/emacs/site-lisp/bitmap/ --- Bitmap-mule
+ ${LOCALBASE}/share/emacs/site-lisp/bitmap/ --- Bitmap-mule
--- Porting by shige <shige@FreeBSD.org>