aboutsummaryrefslogblamecommitdiff
path: root/graphics/ppminfo/Makefile
blob: 02fc965633a1372f4f1b8243821df53f303cb4cd (plain) (tree)
1
2
3
4
5
6
7
8
9

                       
                 

                                                         
 
                                 
                                           
                                                  
 
                                            
 
                                                 
                               
                                             






                                                                    
                                                                         

                      
PORTNAME=	ppminfo
PORTVERSION=	0.1
PORTREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	http://www.vanheusden.com/ppminfo/ CENKES

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Shows details of a ppm file
WWW=		http://www.vanheusden.com/ppminfo/

LIB_DEPENDS=	libnetpbm.so:graphics/netpbm

USES=		localbase:ldflags ncurses tar:tgz
PLIST_FILES=	bin/${PORTNAME}
CFLAGS+=	-I${LOCALBASE}/include/netpbm

post-patch:
	@${REINPLACE_CMD} 's|min(|MIN(|;s|max(|MAX(|' ${WRKSRC}/pi.c
	@${REINPLACE_CMD} 's|-O2||;/^LDFLAGS=/s|=|+=|;\
		/^DEBUG=/d' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>