From owner-svn-ports-all@freebsd.org Fri Mar 16 17:42:36 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 07B57F60DB1; Fri, 16 Mar 2018 17:42:36 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AD36E6B6E0; Fri, 16 Mar 2018 17:42:35 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8E3EE26FA1; Fri, 16 Mar 2018 17:42:35 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2GHgZk0041813; Fri, 16 Mar 2018 17:42:35 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2GHgZgJ041812; Fri, 16 Mar 2018 17:42:35 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201803161742.w2GHgZgJ041812@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Fri, 16 Mar 2018 17:42:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r464717 - head/print/pslib X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/print/pslib X-SVN-Commit-Revision: 464717 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2018 17:42:36 -0000 Author: amdmi3 Date: Fri Mar 16 17:42:35 2018 New Revision: 464717 URL: https://svnweb.freebsd.org/changeset/ports/464717 Log: - Add LICENSE_FILE - Switch to USES=localbase - Simplify and modernize - Switch to options helpers Modified: head/print/pslib/Makefile Modified: head/print/pslib/Makefile ============================================================================== --- head/print/pslib/Makefile Fri Mar 16 17:41:22 2018 (r464716) +++ head/print/pslib/Makefile Fri Mar 16 17:42:35 2018 (r464717) @@ -6,59 +6,44 @@ PORTVERSION= 0.4.5 PORTREVISION= 4 CATEGORIES= print MASTER_SITES= SF +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= C-library for generating multi page PostScript documents LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff -USES= gettext gmake jpeg libtool pathfix pkgconfig +USES= gettext gmake jpeg libtool localbase pathfix pkgconfig USE_GNOME= intlhack USE_LDCONFIG= yes GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib -lintl +LIBS+= -lintl INSTALL_TARGET= install-strip -OPTIONS_DEFINE= EXAMPLES MANPAGES NLS +EX_DISTNAME= pslib-examples-0.0.10 +EX_WRKSRC= ${WRKDIR}/${EX_DISTNAME} + +OPTIONS_DEFINE= EXAMPLES MANPAGES NLS OPTIONS_DEFAULT= MANPAGES -OPTIONS_SUB= yes +OPTIONS_SUB= yes -.include +EXAMPLES_DISTFILES= ${EX_DISTNAME}${EXTRACT_SUFX} -.if ${PORT_OPTIONS:MEXAMPLES} -EX_NAME= pslib-examples-0.0.10 -EX_WRKSRC= ${WRKDIR}/${EX_NAME} -DISTFILES+= ${DISTNAME}${EXTRACT_SUFX} ${EX_NAME}${EXTRACT_SUFX} -.endif +MANPAGES_BUILD_DEPENDS= ${LOCALBASE}/bin/docbook-to-man:textproc/docbook-to-man \ + ${LOCALBASE}/bin/docbook2man:textproc/docbook-utils +MANPAGES_CONFIGURE_ENV_OFF=ac_cv_prog_DOC_TO_MAN="" -.if ${PORT_OPTIONS:MMANPAGES} -BUILD_DEPENDS+= ${LOCALBASE}/bin/docbook-to-man:textproc/docbook-to-man \ - ${LOCALBASE}/bin/docbook2man:textproc/docbook-utils -.else -# Avoid building the manpages. -CONFIGURE_ENV+= ac_cv_prog_DOC_TO_MAN="" -.endif +NLS_CONFIGURE_ENV_OFF= ac_cv_header_libintl_h=no -.if ${PORT_OPTIONS:MNLS} -PLIST_SUB+= NLS="" -.else -CONFIGURE_ENV+= ac_cv_header_libintl_h=no -PLIST_SUB+= NLS="@comment " -.endif - -post-patch: -.if ! ${PORT_OPTIONS:MNLS} +post-patch-NLS-off: @${REINPLACE_CMD} -e 's|@USE_NLS@|no|g' ${WRKSRC}/po/Makefile.in.in -.endif -post-install: - ${MKDIR} -m 0755 ${STAGEDIR}${EXAMPLESDIR} - @${RM} ${EX_WRKSRC}/Makefile.unix ${EX_WRKSRC}/ChangeLog \ - ${EX_WRKSRC}/CMakeLists.txt - cd ${EX_WRKSRC} && ${PAX} -rw * ${STAGEDIR}${EXAMPLESDIR} +post-install-EXAMPLES-on: + @cd ${EX_WRKSRC} && ${RM} Makefile.unix ChangeLog CMakeLists.txt && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} -.include +.include