freebsd-ports/cad/librnd/Makefile
Robert Clausecker d7314106e3 cad/librnd: update to 3.2.1
ChangeLog: http://www.repo.hu/projects/librnd/releases/changelog-3.2.1.txt

PR:		266698
Reported by:	fuz@fuz.su (maintainer)
MFH:		2022Q4 (bugfix release)
2022-10-04 18:03:13 +02:00

89 lines
2.3 KiB
Makefile

PORTNAME= librnd
DISTVERSION= 3.2.1
CATEGORIES= cad
MASTER_SITES= http://repo.hu/projects/${PORTNAME}/releases/
MAINTAINER= fuz@fuz.su
COMMENT= Flexible, modular two-dimensional CAD engine
WWW= http://www.repo.hu/projects/librnd/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfungw.so:devel/fungw \
libgenht.so:devel/genht
USES= gmake pkgconfig tar:bz2
USE_LDCONFIG= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --all=plugin --plugin-hid_remote \
${WITH_DEBUG:D--debug} \
--CC=${CC} \
--CFLAGS='${CFLAGS}' \
--LDFLAGS='${LDFLAGS}'
TEST_TARGET= test
BINARY_ALIAS= make=${MAKE_CMD}
OPTIONS_DEFINE= DOCS GD MOTIF GTK2 GTK2GL GTK4 STROKE WGET
OPTIONS_DEFAULT= GD GTK2 GTK2GL STROKE WGET
OPTIONS_SUB= yes
GTK2GL_DESC= GTK+ 2 GUI with OpenGL support
GTK4_DESC= GTK+ 4 GUI toolkit support
WGET_DESC= Wget support
GD_LIB_DEPENDS= libgd.so:graphics/gd
GD_CONFIGURE_OFF= --disable-gd
GTK2GL_IMPLIES= GTK2
GTK2GL_LIB_DEPENDS= libgtkglext-x11-1.0.so:x11-toolkits/gtkglext
GTK2GL_USES= gl
GTK2GL_USE= gl=gl,glu gnome=pangox-compat xorg=x11
GTK2GL_CONFIGURE_OFF= --disable-hid_gtk2_gl
GTK2_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz
GTK2_USES= gnome
GTK2_USE= gnome=cairo,gdkpixbuf2,gtk20
GTK2_CONFIGURE_OFF= --disable-hid_gtk2_gdk
GTK4_IMPLIES= GTK2
GTK4_LIB_DEPENDS= libepoxy.so:graphics/libepoxy \
libgraphene-1.0.so:graphics/graphene \
libharfbuzz.so:print/harfbuzz \
libvulkan.so:graphics/vulkan-loader
GTK4_USES= gl gnome
GTK4_USE= gl=gl,glu gnome=cairo,gdkpixbuf2,gtk40
GTK4_CONFIGURE_OFF= --disable-hid_gtk4_gl
MOTIF_USES= motif
MOTIF_USE= xorg=xt,x11,xinerama,xrender
MOTIF_CONFIGURE_OFF= --disable-hid_lesstif
STROKE_LIB_DEPENDS= libstroke.so:devel/libstroke
STROKE_CONFIGURE_OFF= --disable-stroke
WGET_RUN_DEPENDS= wget:ftp/wget
WGET_CONFIGURE_OFF= --disable-lib_wget
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MGTK2} || ${PORT_OPTIONS:MGTK4} || ${PORT_OPTIONS:MMOTIF}
PLIST_SUB+= GUI=""
.else
PLIST_SUB+= GUI="@comment "
.endif
pre-configure:
${REINPLACE_CMD} \
-e 's,%%LOCALBASE%%,${LOCALBASE},' \
-e 's,%%MOTIFLIB%%,${MOTIFLIB},' \
${WRKSRC}/scconfig/src/gui/find_gl.c \
${WRKSRC}/scconfig/src/gui/find_lesstif2.c \
${WRKSRC}/scconfig/src/gui/find_misc.c \
${WRKSRC}/scconfig/src/gui/find_x.c
.include <bsd.port.post.mk>