freebsd-ports/cad/magic/Makefile

69 lines
2.0 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: magic
# Date created: 18 Dec 1994
# Whom: swallace
#
1999-08-25 00:58:03 -04:00
# $FreeBSD$
#
PORTNAME= magic
PORTVERSION= 7.1
CATEGORIES= cad
MASTER_SITES= http://vlsi.cornell.edu/magic/
MAINTAINER= ports@FreeBSD.org
2003-02-20 12:07:10 -05:00
COMMENT= An interactive editor for VLSI layouts
1998-11-29 07:43:13 -05:00
USE_XLIB= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= CADDIR="${PREFIX}" X11BASE="${X11BASE}"
ALL_TARGET= mains
BINS= XHelper7 ext2sim ext2spice extcheck magic magicusage net2ir
MAN1= ext2sim.1 ext2spice.1 extcheck.1 magic.1 magicusage.1
MAN3= dqueue.3 extflat.3 geometry.3 hash.3 heap.3 libmalloc.3 list.3 \
magicutils.3 malloc.3 path.3 runstats.3 set.3 show.3 stack.3 string.3
MAN5= cmap.5 displays.5 dlys.5 dstyle.5 ext.5 glyphs.5 magic.5 net.5 sim.5
MAN8= prleak.8
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's|make |\$$\{MAKE\} |g'
do-configure:
@cd ${WRKSRC} && ${WRKSRC}/scripts/makedbh \
database/database.h.in database/database.h
@${CP} ${FILESDIR}/defs.mak ${WRKSRC}/defs.mak
post-install:
1999-08-22 15:01:07 -04:00
@${CHMOD} ${BINMODE} ${PREFIX}/bin/spice2sim
2001-06-01 02:05:18 -04:00
@${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/bin/spice2sim
.for f in ${BINS}
@${CHMOD} ${BINMODE} ${PREFIX}/bin/${f}
@${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/bin/${f}
@strip ${PREFIX}/bin/${f}
.endfor
.for f in ${MAN1}
@${CHMOD} ${MANMODE} ${PREFIX}/man/man1/${f}
@${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/man/man1/${f}
.endfor
.for f in ${MAN3}
@${CHMOD} ${MANMODE} ${PREFIX}/man/man3/${f}
@${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/man/man3/${f}
.endfor
.for f in ${MAN5}
@${CHMOD} ${MANMODE} ${PREFIX}/man/man5/${f}
@${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/man/man5/${f}
.endfor
.for f in ${MAN8}
@${CHMOD} ${MANMODE} ${PREFIX}/man/man8/${f}
@${CHOWN} ${MANOWN}:${MANGRP} ${PREFIX}/man/man8/${f}
.endfor
1999-08-22 15:01:07 -04:00
@${CHMOD} -R a+rX,go-w ${PREFIX}/lib/magic
2001-06-01 02:05:18 -04:00
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/magic
1999-08-22 15:01:07 -04:00
@${CHMOD} ${SHAREMODE} ${PREFIX}/lib/mpack.h ${PREFIX}/lib/libmpack.a
2001-06-01 02:05:18 -04:00
@${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/mpack.h \
${PREFIX}/lib/libmpack.a
.include <bsd.port.mk>