55 lines
2.2 KiB
Makefile
55 lines
2.2 KiB
Makefile
COMMENT = GUI for spatialite
|
|
DISTNAME = spatialite_gui-2.1.0-beta1
|
|
PKGNAME = spatialite_gui-2.1.0beta1
|
|
REVISION = 3
|
|
PROJECT = spatialite_gui
|
|
|
|
LIB_DEPENDS += x11/wxWidgets>=3.0.4 \
|
|
databases/sqlite3 \
|
|
geo/spatialite/libspatialite>=5.0.0 \
|
|
geo/spatialite/librasterlite2>=1.1.0beta1 \
|
|
geo/spatialite/virtualpg
|
|
RUN_DEPENDS += devel/desktop-file-utils \
|
|
x11/gtk+4,-guic
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} ICE SDL2 SM X11 Xau Xcomposite Xcursor
|
|
WANTLIB += Xdamage Xdmcp Xext Xfixes Xi Xinerama Xrandr Xrender
|
|
WANTLIB += Xss Xtst Xxf86vm aspell atk-1.0 atk-bridge-2.0 atspi
|
|
WANTLIB += bz2 c cairo cairo-gobject crypto curl dbus-1 enchant-2
|
|
WANTLIB += epoxy execinfo expat ffi fontconfig freetype freexl
|
|
WANTLIB += fribidi gcrypt gdk-3 gdk_pixbuf-2.0 geos geos_c geotiff
|
|
WANTLIB += gif gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gpg-error
|
|
WANTLIB += graphite2 gspell-1 gthread-2.0 gtk-3 harfbuzz iconv
|
|
WANTLIB += icudata icuuc intl jpeg lz4 lzma m minizip mspack nghttp2
|
|
WANTLIB += nghttp3 ngtcp2 ngtcp2_crypto_openssl notify openjp2
|
|
WANTLIB += pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre2-32 pcre2-8
|
|
WANTLIB += pixman-1 png pq proj rasterlite2 rttopo samplerate
|
|
WANTLIB += secret-1 sndio spatialite sqlite3 ssl tiff usbhid virtualpg
|
|
WANTLIB += webp wx_baseu-3.2 wx_baseu_net-3.2 wx_baseu_xml-3.2
|
|
WANTLIB += wx_gtk3u_aui-3.2 wx_gtk3u_core-3.2 wx_gtk3u_html-3.2
|
|
WANTLIB += wx_gtk3u_qa-3.2 wx_gtk3u_xrc-3.2 xcb xcb-render xcb-shm
|
|
WANTLIB += xml2 z zstd
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
# so that it finds all libs without rpath..
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS += --disable-xlsxwriter
|
|
|
|
# Checking libpq fails on ld.bfd archs; LIBS is crowded with flags coming
|
|
# from other configure AC_CHECK_LIB checks, pulling X11 libraries.
|
|
# ac_cv_lib_pq_PQconnectdb="yes" could have been used as well. The extra
|
|
# space matters.
|
|
.include <bsd.port.arch.mk>
|
|
.if !${PROPERTIES:Mlld}
|
|
CONFIGURE_ENV += LIBS="-L${X11BASE}/lib "
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/{pixmaps,applications}
|
|
${INSTALL_DATA} ${WRKSRC}/gnome_resource/*.desktop ${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/gnome_resource/*.png ${PREFIX}/share/pixmaps/
|
|
|
|
.include <bsd.port.mk>
|