openbsd-ports/net/pavuk/Makefile
2008-06-12 21:58:11 +00:00

54 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.14 2008/06/12 21:58:12 sthen Exp $
COMMENT= tool to mirror contents of HTTP and FTP servers
DISTNAME= pavuk-0.9.35
PKGNAME= ${DISTNAME}p0
CATEGORIES= net
HOMEPAGE= http://www.pavuk.org/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto ssl z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pavuk/}
FLAVORS= no_x11
FLAVOR?=
MODULES= devel/gettext
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --disable-debug --disable-socks --disable-gnome \
--disable-tree --disable-js --with-regex=posix
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if !${FLAVOR:L:Mno_x11}
USE_X11= Yes
LIB_DEPENDS+= gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2
WANTLIB+= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xmu Xrandr Xrender atk-1.0 cairo expat \
fontconfig freetype glib-2.0 glitz gmodule-2.0 gobject-2.0 \
m pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 png
.else
CONFIGURE_ARGS+= --disable-gtk
.endif
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pavuk
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pavuk
cd ${WRKSRC} && ${INSTALL_DATA} COPYING README wget-pavuk.HOWTO \
${PREFIX}/share/doc/pavuk
cd ${WRKSRC} && ${INSTALL_DATA} *.sample \
${PREFIX}/share/examples/pavuk
.include <bsd.port.mk>