freebsd-ports/x11/xcolorsel/Makefile
Nicola Vitale 08acd2a9c3 - Add x11/rgb to RUN_DEPENDS
- Bump PORTREVISION
- Fix package build when NO_INSTALL_MANPAGES is defined
- Remove MD5 checksum from distinfo

PR:		ports/153125
Submitted by:	nivit
2010-12-13 17:24:00 +00:00

37 lines
989 B
Makefile

# New ports collection makefile for: xcolorsel
# Date Created: 11 November 1998
# Whom: Wayne Cuddy <wayne@crb-web.com>
#
# $FreeBSD$
#
PORTNAME= xcolorsel
PORTVERSION= 1.1a
PORTREVISION= 2
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= utilities
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= X utility to translate rgb values into X color names
LIB_DEPENDS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
RUN_DEPENDS= rgb>=1.0.3:${PORTSDIR}/x11/rgb
WRKSRC= ${WRKDIR}/xcolorsel
USE_IMAKE= yes
USE_XORG= xpm
.if !defined(NO_INSTALL_MANPAGES)
MAN1= xcolorsel.1
.endif
post-patch:
@${ECHO_CMD} "*.file: ${LOCALBASE}/lib/X11/rgb.txt" >> ${WRKSRC}/Xcolorsel.ad
@${REINPLACE_CMD} -e 's|#include <malloc.h>||g' \
-e 's|/Xaw/|/Xaw3d/|g' ${WRKSRC}/*.[ch]
@${REINPLACE_CMD} -e 's|app2head|./app2head|g' \
-e 's|XawClientLibs|-lXaw3d $$(XMULIBONLY) $$(XTOOLLIB) $$(XPMLIB) $$(XLIB)|g' ${WRKSRC}/Imakefile
.include <bsd.port.mk>