1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00
freebsd-ports/cad/magic/Makefile
Niclas Zeising c2e845d0c8 Add USES=xorg USES=gl, ports categories c
Add USES=xorg, USES=gl and in a few cases USES=gnome to ports in categories
starting with 'c'.
2019-11-04 21:36:13 +00:00

55 lines
1.4 KiB
Makefile

# Created by: swallace
# $FreeBSD$
PORTNAME= magic
PORTVERSION= 7.5.240
PORTREVISION= 2
CATEGORIES= cad
MASTER_SITES= http://opencircuitdesign.com/magic/archive/ \
http://fossies.org/linux/misc/
MAINTAINER= hrs@FreeBSD.org
COMMENT= Interactive editor for VLSI layouts
LICENSE= MIT
LICENSE_FILE= ${FILESDIR}/license.txt
LIB_DEPENDS= libBLT25.so:x11-toolkits/blt
USES= gmake gl tk:tea tar:tgz xorg
USE_XORG= ice xext xi xmu
USE_GL= gl
CONFIGURE_ARGS= --with-opengl
CONFIGURE_WRKSRC= ${WRKSRC}/scripts
ALL_TARGET= tcllibrary
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DESKTOP_ENTRIES="Magic" "" "" "${PORTNAME}" "" ""
PORTSCOUT= limit:^7\.
post-patch:
@${REINPLACE_CMD} -e \
's|^#!.*|#!${AWK} -f|' ${WRKSRC}/ext2spice/spice2sim
@${REINPLACE_CMD} -e \
's|TCL_LIB_NAME=.*|TCL_LIB_NAME="tcl${TCL_VER:S/.//}"|g ; \
s|TK_LIB_NAME=.*|TK_LIB_NAME="tk${TK_VER:S/.//}"|g ; \
s|wish$${TK_VERSION}|${WISH:T}|g ; \
s|tclsh$${TK_VERSION}|${TCLSH:T}|g ; \
s|-l/usr/X11R6/include|-I${LOCALBASE}/include|g' \
${CONFIGURE_WRKSRC}/configure
@${REINPLACE_CMD} -e \
'/CFLAGS/s| -pg | |' ${WRKSRC}/tcltk/Makefile
@${REINPLACE_CMD} -e \
's|^#!.*|#!${TCLSH}|' ${WRKSRC}/tcltk/strip_reflibs.tcl
@${REINPLACE_CMD} -e \
's|^#!.*|#!${WISH}|' ${WRKSRC}/tcltk/tkshell.tcl
pre-build:
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} database/database.h)
.include <bsd.port.mk>