1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/graphics/xmorph/Makefile
Rong-En Fan f935a609c5 - Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them.  This is determined by running ``configure --help'' in
  do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
  which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
  Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
  PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
  subdirectory detection.

PR:		ports/111470
Approved by:	portmgr
Discussed with:	stas (Mk/*), gerald (info related stuffs)
Tested by:	pointyhat exp run
2007-07-23 09:36:51 +00:00

74 lines
1.5 KiB
Makefile

# New ports collection makefile for: xmorph
# Date created: Thu Aug 1 09:10:22 CDT 1996
# Whom: erich@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= xmorph
PORTVERSION= 2006.08.17
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//g}
MAINTAINER= ports@FreeBSD.org
COMMENT= A digital image warping program
LIB_DEPENDS= fftw3.4:${PORTSDIR}/math/fftw3
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.//g}
CONFLICTS= libmorph*
USE_X_PREFIX= yes
WANT_GNOME= yes
USE_GNOME= gnometarget
USE_GCC= 3.4+
USE_XORG= xbitmaps
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS= --without-waili
USE_LDCONFIG= yes
MAN1= gtkmorph.1 xmorph.1
INFO= xmorph
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 502114
CFLAGS+= -Dround=rint
.endif
.if ${HAVE_GNOME:Mgtk20}!=""
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk=2
.else
CONFIGURE_ARGS+= --without-gtkmorph
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-extract:
@${RM} -f ${WRKSRC}/doc/*.info*
post-patch:
@${REINPLACE_CMD} -e 's|^LDFLAGS=|#LDFLAGS=|g' ${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/example && ${FIND} . | \
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>