diff options
Diffstat (limited to 'editors/bitmap-mule/Makefile')
-rw-r--r-- | editors/bitmap-mule/Makefile | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/editors/bitmap-mule/Makefile b/editors/bitmap-mule/Makefile index 2280907933d2..75a138051de1 100644 --- a/editors/bitmap-mule/Makefile +++ b/editors/bitmap-mule/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} +DISTNAME= ${PORTNAME}-mule-${BITMAP_VER} +PKGNAMESUFFIX= -${EMACS_PORT_NAME} MAINTAINER= shige@FreeBSD.org @@ -22,32 +23,40 @@ BITMAP_FONT= ${X11BASE}/lib/X11/fonts/local/etl8x16-bitmap.pcf.gz # mule-19.34 EMACS_PORT_NAME= mule -.include <bsd.port.pre.mk> # target name for make build ALL_TARGET?= elc -BUILD_DEPENDS+= uncompface:${PORTSDIR}/mail/faces -RUN_DEPENDS+= ${BITMAP_FONT}:${PORTSDIR}/x11-fonts/bitmap-font -SCRIPTS_ENV+= TARGETS=${BITMAP_SETUPEL} -PLIST_SUB+= BITMAP_SETUPEL=${BITMAP_SETUPEL} \ +BUILD_DEPENDS= uncompface:${PORTSDIR}/mail/faces +RUN_DEPENDS= ${BITMAP_FONT}:${PORTSDIR}/x11-fonts/bitmap-font +SCRIPTS_ENV= TARGETS=${BITMAP_SETUPEL} +PLIST_SUB= BITMAP_SETUPEL=${BITMAP_SETUPEL} \ 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 pre-configure: @${CP} ${FILESDIR}/${BITMAP_SETUPEL}.in ${WRKDIR} post-install: @${INSTALL_DATA} ${WRKDIR}/${BITMAP_SETUPEL} \ - ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/site-lisp + ${LOCALBASE}/${EMACS_LIBDIR_WITH_VER}/site-lisp .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 |