aboutsummaryrefslogtreecommitdiff
path: root/editors/bitmap
diff options
context:
space:
mode:
authorShigeyuki Fukushima <shige@FreeBSD.org>2000-07-17 02:40:09 +0000
committerShigeyuki Fukushima <shige@FreeBSD.org>2000-07-17 02:40:09 +0000
commitc8b90f0c69eca289aac8ce0ed9eb73c76f0db797 (patch)
treeabb9add9d02fcc3c474844d34fd4154fe2e4d713 /editors/bitmap
parent1efbda0db95dc6fae6ac6e52588ebf4c30654bf8 (diff)
downloadports-c8b90f0c69eca289aac8ce0ed9eb73c76f0db797.tar.gz
ports-c8b90f0c69eca289aac8ce0ed9eb73c76f0db797.zip
Notes
Diffstat (limited to 'editors/bitmap')
-rw-r--r--editors/bitmap/Makefile36
-rw-r--r--editors/bitmap/pkg-descr.emacs202
2 files changed, 20 insertions, 18 deletions
diff --git a/editors/bitmap/Makefile b/editors/bitmap/Makefile
index c3c97540f6ac..210bd83f7dec 100644
--- a/editors/bitmap/Makefile
+++ b/editors/bitmap/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/pkg-descr.emacs20 b/editors/bitmap/pkg-descr.emacs20
index 714d6a714511..9073ffc9d4db 100644
--- a/editors/bitmap/pkg-descr.emacs20
+++ b/editors/bitmap/pkg-descr.emacs20
@@ -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>