64e068d25c
Bump PORTREVISION of all dependent ports. Fix the build errors in the few ports that still use the long deprecated, and now obsoleted, cURL options. Thanks to everyone who took the time to look over the patch! Discussed on: -ports
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# New ports collection makefile for: mdh
|
|
# Date created: 12 November 2003
|
|
# Whom: Adam Weinberger <adamw@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= mdh
|
|
PORTVERSION= 1.9.59
|
|
PORTREVISION= 2
|
|
CATEGORIES= deskutils gnome
|
|
MASTER_SITES= http://www.gozer.org/my_stuff/gtk/gtk/mdh/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GTK2-based toolbar, like a smaller GNOME panel
|
|
|
|
USE_BZIP2= yes
|
|
USE_X_PREFIX= yes
|
|
USE_GNOME= gnometarget gtk20
|
|
USE_GETOPT_LONG= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
|
|
.if defined(WITHOUT_GTOP)
|
|
CONFIGURE_ARGS+= --disable-gtop
|
|
.else
|
|
LIB_DEPENDS+= gtop-2.0:${PORTSDIR}/devel/libgtop
|
|
.endif
|
|
|
|
.if defined(WITHOUT_CURL)
|
|
CONFIGURE_ARGS+= --disable-curl
|
|
.else
|
|
LIB_DEPENDS+= curl.4:${PORTSDIR}/ftp/curl
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| make| $$(MAKE)|g' ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e 's|\.\./lib/getopt/getopt\.c||g ; \
|
|
s|\.\./lib/getopt/getopt1\.c||g ; \
|
|
s|-I../lib/getopt||g ; \
|
|
s|$$(CC) -g|$$(CC)|g ; \
|
|
s|@INSTALL@ -m 0775|@INSTALL_PROGRAM@|g ; \
|
|
s|cp -p|@INSTALL_DATA@|g' ${WRKSRC}/src/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|"getopt\.h"|<getopt.h>|g' ${WRKSRC}/src/mdh.c
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|