1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/mail/stuphead/Makefile
Kevin Lo b8562ae21d Update to version 0.5.3
PR: 27989
Submitted by: MAINTAINER
2001-06-11 15:38:08 +00:00

76 lines
2.1 KiB
Makefile

# New ports collection makefile for: stuphead
# Date created: 07 December 2000
# Whom: Sergey Osokin aka oZZ <ozz@FreeBSD.org.ru>
#
# $FreeBSD$
#
PORTNAME= stuphead
PORTVERSION= 0.5.3
CATEGORIES= mail gnome
MASTER_SITES= http://stuphead.antex.ru/
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= ${PORTNAME}-${PORTVERSION}-1.patch
MAINTAINER= ozz@FreeBSD.org.ru
LIB_DEPENDS= iconv.2:${PORTSDIR}/converters/iconv
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GTK= yes
USE_LIBTOOL= yes
CONFIGURE_ARGS= --enable-threads \
--prefix=${PREFIX}
.if defined (WITH_PIXBUF)
LIB_DEPENDS+= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
.else
CONFIGURE_ARGS+= --disable-gdk-pixbuf \
--disable-gdk_pixbuftest
.endif
.if defined (WITH_GNOME)
USE_GNOME= yes
PLIST= ${PKGDIR}/pkg-plist.gnome
CONFIGURE_ARGS+= --enable-gnome
.else
CONFIGURE_ARGS+= --disable-imlib \
--disable-imlibtest
.endif
.if defined (WITH_MOZILLA)
PLIST= ${PKGDIR}/pkg-plist.mozilla
CONFIGURE_ARGS+= --enable-mozilla
BUILD_DEPENDS+= ${PREFIX}/include/mozilla/gtkmozembed.h:${PORTSDIR}/www/mozilla-headers
RUN_DEPENDS+= ${PREFIX}/bin/mozilla:${PORTSDIR}/www/mozilla
.endif
.if defined (WITH_ISPELL)
RUN_DEPENDS+= ${LOCALBASE}/bin/ispell-ru:${PORTSDIR}/russian/rus-ispell
.endif
pre-patch:
@${PERL} -pi -e 's#DATADIRNAME=lib#DATADIRNAME=share#g' \
${WRKSRC}/configure
@${PERL} -pi -e 's#/usr/bin/gnome-config#$(PREFIX)/bin/gnome-config#g' \
${WRKSRC}/configure
do-install:
.if defined (WITH_MOZILLA)
@ ${INSTALL_SCRIPT} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
@ ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}bin ${PREFIX}/bin
.else
@ ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}bin ${PREFIX}/bin/${PORTNAME}
.endif
@ ${INSTALL_DATA} ${WRKSRC}/src/pixmaps/${PORTNAME}.xpm ${PREFIX}/share/pixmaps
@ ${INSTALL_DATA} ${WRKSRC}/po/fr.gmo ${PREFIX}/share/locale/fr/LC_MESSAGES/${PORTNAME}.mo
@ ${INSTALL_DATA} ${WRKSRC}/po/ru.gmo ${PREFIX}/share/locale/ru/LC_MESSAGES/${PORTNAME}.mo
.if defined (WITH_GNOME)
@ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/gnome/apps/Internet
.endif
.include <bsd.port.mk>