1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/print/libpaper/Makefile
Dmitry Marakasov 627d72d304 - Switch print/libpaper to USES=libtool, drop .la files
- Bump dependent ports as .so version has changed

Approved by:	portmgr blanket
2014-06-20 11:15:57 +00:00

40 lines
931 B
Makefile

# Created by: lofi@FreeBSD.org
# $FreeBSD$
PORTNAME= libpaper
PORTVERSION= 1.1.24
PORTREVISION= 2
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR= pool/main/libp/libpaper
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= hrs@FreeBSD.org
COMMENT= Library providing routines for paper size management
USES= libtool
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
pre-configure:
@${TOUCH} ${WRKSRC}/config.sub
@${REINPLACE_CMD} -E -e 's|(#!).*/bin/bash|\1/bin/sh|g' \
-e 's|==|=|g' \
${WRKSRC}/src/paperconfig.in
post-configure:
@${REINPLACE_CMD} -e 's|$${prefix}|${PREFIX}|g' ${WRKSRC}/config.h \
${WRKSRC}/src/paperconfig
pre-build:
${ECHO_CMD} a4 > ${WRKDIR}/papersize.a4
${ECHO_CMD} letter > ${WRKDIR}/papersize.letter
post-install:
cd ${WRKDIR} && \
${INSTALL_DATA} papersize.a4 papersize.letter ${STAGEDIR}${PREFIX}/etc
.include <bsd.port.mk>