freebsd-ports/sysutils/gnome-settings-daemon/Makefile
Jan Beich f5f47a5a4e devel/nspr, security/nss: drop version from SONAME
No other downstream appends synthetic library version, and doing so
causes underlinking due to fragile build system (see below). Not to
mention being unable to swap out bundled libs from upstream builds.

  $ cc -lplds4 -L/usr/local/lib
  /usr/lib/crt1.o: In function `_start1':
  crt1_c.c:(.text+0xa6): undefined reference to `main'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_set_name_np'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_create'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_condattr_init'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_setschedparam'
  /usr/local/lib/libplds4.so: undefined reference to `pthread_getschedparam'

PR:		213144
Exp-run by:	antoine
2016-10-09 12:10:02 +00:00

82 lines
2.8 KiB
Makefile

# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
PORTNAME= gnome-settings-daemon
PORTVERSION= 3.18.2
PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME 3 settings daemon
BUILD_DEPENDS= gnome-session>=0:x11/gnome-session \
geoclue>=0:net/geoclue \
docbook-xsl>=0:textproc/docbook-xsl \
gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas
LIB_DEPENDS= libcanberra-gtk3.so:audio/libcanberra-gtk3 \
libpolkit-gobject-1.so:sysutils/polkit \
libibus-1.0.so:textproc/ibus \
libdbus-1.so:devel/dbus \
libcolord.so:graphics/colord \
liblcms2.so:graphics/lcms2 \
libpulse.so:audio/pulseaudio \
libgdbm.so:databases/gdbm \
libnotify.so:devel/libnotify \
libgeocode-glib.so:net/geocode-glib \
libgweather-3.so:net/libgweather
RUN_DEPENDS= gnome-session>=0:x11/gnome-session \
geoclue>=0:net/geoclue \
gsettings-desktop-schemas>=0:devel/gsettings-desktop-schemas
PORTSCOUT= limitw:1,even
USE_XORG= xxf86misc
USE_GNOME= gnomedesktop3 intltool libxslt
USES= gettext gmake gnome libtool pathfix pkgconfig tar:xz
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
CONFIGURE_ARGS= --disable-gudev \
--with-nssdb=${LOCALBASE}/share/certs/ca-root-nss.crt \
--disable-wayland \
--disable-rfkill \
--disable-network-manager
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
OPTIONS_SUB= yes
OPTIONS_DEFINE= CUPS SMARTCARD
OPTIONS_DEFAULT=CUPS SMARTCARD
SMARTCARD_DESC= Smartcard support
CUPS_CONFIGURE_ENABLE= cups
CUPS_LIB_DEPENDS= libcups.so:print/cups
SMARTCARD_CONFIGURE_ENABLE= smartcard-support
SMARTCARD_LIB_DEPENDS= libnss3.so:security/nss
GLIB_SCHEMAS= org.gnome.settings-daemon.enums.xml \
org.gnome.settings-daemon.peripherals.gschema.xml \
org.gnome.settings-daemon.plugins.color.gschema.xml \
org.gnome.settings-daemon.plugins.datetime.gschema.xml \
org.gnome.settings-daemon.plugins.gschema.xml \
org.gnome.settings-daemon.plugins.housekeeping.gschema.xml \
org.gnome.settings-daemon.plugins.keyboard.gschema.xml \
org.gnome.settings-daemon.plugins.media-keys.gschema.xml \
org.gnome.settings-daemon.plugins.power.gschema.xml \
org.gnome.settings-daemon.plugins.power.gschema.xml.override \
org.gnome.settings-daemon.plugins.print-notifications.gschema.xml \
org.gnome.settings-daemon.plugins.sharing.gschema.xml \
org.gnome.settings-daemon.plugins.xrandr.gschema.xml \
org.gnome.settings-daemon.plugins.xsettings.gschema.xml
post-patch:
@${REINPLACE_CMD} -e 's|/etc/gnome|${PREFIX}/etc/gnome|g' \
${WRKSRC}/data/org.gnome.settings-daemon.plugins.xrandr.gschema.xml.in.in
post-install:
${INSTALL_DATA} ${FILESDIR}/org.gnome.settings-daemon.plugins.power.gschema.xml.override \
${STAGEDIR}${PREFIX}/share/glib-2.0/schemas/
.include <bsd.port.mk>