2006-12-29 21:20:32 +01:00
|
|
|
# New ports collection makefile for: mugshot
|
|
|
|
# Date Created: 24 December 2006
|
|
|
|
# Whom: wahjava
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mugshot
|
2008-05-30 23:52:00 +02:00
|
|
|
PORTVERSION= 1.1.95
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2006-12-29 21:20:32 +01:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://download.mugshot.org/client/sources/linux/
|
|
|
|
|
|
|
|
MAINTAINER= wahjava@gmail.com
|
|
|
|
COMMENT= The official client for Mugshot network
|
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg:install \
|
2008-05-30 23:52:00 +02:00
|
|
|
Xss.1:${PORTSDIR}/x11/xorg-libraries:install \
|
|
|
|
dbus-1.3:${PORTSDIR}/devel/dbus \
|
|
|
|
dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
|
|
|
|
cairo.2:${PORTSDIR}/graphics/cairo \
|
|
|
|
hippocanvas-1.0:${PORTSDIR}/x11-toolkits/hippo-canvas \
|
|
|
|
ddm-1.0:${PORTSDIR}/net/desktop-data-model
|
2006-12-29 21:20:32 +01:00
|
|
|
BUILD_DEPENDS= ${PKGCONFIG_LOCAL_BASE}/dbus-1.pc:${PORTSDIR}/devel/dbus:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/loudmouth-1.0.pc:${PORTSDIR}/net-im/loudmouth:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/cairo.pc:${PORTSDIR}/graphics/cairo:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/libcurl.pc:${PORTSDIR}/ftp/curl:install \
|
|
|
|
${LOCALBASE}/include/firefox/caps/nsIScriptSecurityManager.h:${PORTSDIR}/www/firefox:install \
|
|
|
|
${LOCALBASE}/lib/firefox/xpidl:${PORTSDIR}/www/firefox:install \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${LOCALBASE}/include/X11/extensions/scrnsaver.h:${PORTSDIR}/x11/xorg-libraries:install \
|
2008-05-30 23:52:00 +02:00
|
|
|
dbus>=1.0.2:${PORTSDIR}/devel/dbus:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/hippo-canvas-1.pc:${PORTSDIR}/x11-toolkits/hippo-canvas:install \
|
|
|
|
${PKGCONFIG_LOCAL_BASE}/ddm-1.pc:${PORTSDIR}/net/desktop-data-model:install
|
2006-12-29 21:20:32 +01:00
|
|
|
|
2007-05-02 01:24:16 +02:00
|
|
|
USE_GNOME= gnomehack gconf2 glib20 gtk20 pango gnomevfs2 gnomedesktop
|
2006-12-29 21:20:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
GCONF_SCHEMAS= mugshot-uri-handler.schemas
|
|
|
|
INSTALLS_ICONS= yes
|
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
LDCONFIG_DIRS= %%PREFIX%%/lib/mugshot/firefox/components
|
|
|
|
|
|
|
|
PKGCONFIG_LOCAL_BASE= ${LOCALBASE}/libdata/pkgconfig
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
PKGCONFIG_X11_BASE= ${LOCALBASE}/libdata/pkgconfig
|
2006-12-29 21:20:32 +01:00
|
|
|
|
2007-02-03 10:49:43 +01:00
|
|
|
mugshot_INSTALL_cmd= install
|
|
|
|
|
2006-12-29 21:20:32 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= "--with-gecko-idl=${FIREFOX_IDL_PATH}" \
|
|
|
|
"--with-gecko-headers=${LOCALBASE}/include/firefox" \
|
2007-05-02 01:24:16 +02:00
|
|
|
"--with-xpidl=${LOCALBASE}/lib/firefox/xpidl" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
"--x-includes=${LOCALBASE}/include" \
|
|
|
|
"--x-libraries=${LOCALBASE}/lib"
|
2006-12-29 21:20:32 +01:00
|
|
|
|
|
|
|
FIREFOX_IDL_PATH!=${SH} -c 'for i in ${LOCALBASE}/share/idl/firefox-*; do [ -f $$i/nsIURI.idl ] && ${ECHO} $$i && break; done; exit 0;'
|
|
|
|
BUILD_DEPENDS+=${FIREFOX_IDL_PATH}/nsIURI.idl:${PORTSDIR}/www/firefox:install
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${SED} -i "" -e "s|%%PREFIX%%|${PREFIX}|" ${PREFIX}/share/mugshot/firefox-update.sh
|
2007-02-03 10:49:43 +01:00
|
|
|
@${PREFIX}/share/mugshot/firefox-update.sh ${mugshot_INSTALL_cmd}
|
2006-12-29 21:20:32 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|