mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
8edd92b403
ChangeLog: http://www.repo.hu/projects/librnd/releases/changelog-3.2.2.txt * Add: comment on BSD make in INSTALL * Fix: use compatibility color component conversion for determining crosshair color because component type and scaling differs between gtk2 and gtk4 * Add: compatibility macro for converting color component to 0..1 * Change: enable gtk4 plugin by default (but still prefer gtk2 if both gtk4 and gtk2 are available) * Add: compatibility macro for converting color component to 0..1 * Add: extdep on libgd * Fix: missing gtk4_gl from the help text * Fix: sensible default size for the export dialog * Fix: when real xor is not available (e.g. on VAO), use 1-clr for all r;g;b so that the base color is "inverted" like when xor is available * Fix: detect inline before making decisions based on it PR: 267863 Reported by: fuz@fuz.su (maintainer) MFH: 2022Q4 (bugfix release)
90 lines
2.4 KiB
Makefile
90 lines
2.4 KiB
Makefile
PORTNAME= librnd
|
|
DISTVERSION= 3.2.2
|
|
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}
|
|
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
|
|
|
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>
|