Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 12:58:44 +0200 (CEST)
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Gabor Kovesdan <gabor@FreeBSD.org>
Subject:   ports/101810: [patch] archivers/unadf
Message-ID:  <20060811105844.99C92289C27@catv-50635cb6.catv.broadband.hu>
Resent-Message-ID: <200608111100.k7BB0W33068729@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         101810
>Category:       ports
>Synopsis:       [patch] archivers/unadf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 11 11:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gabor Kovesdan
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD spitfire 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jul 29 18:31:18 CEST 2006 gabor@spitfire:/usr/src/sys/i386/compile/SPITFIRE i386

>Description:

- Respect DESTDIR
- Respect CC
- Respect CFLAGS
- Install docs if NOPORTDOCS is not set
- Bump PORTREVISION

>How-To-Repeat:
>Fix:

--- archivers-unadf.diff begins here ---
Index: Makefile
===================================================================
RCS file: /usr/cvs/ports/archivers/unadf/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	3 May 2006 05:14:04 -0000	1.6
+++ Makefile	11 Aug 2006 10:53:04 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	unadf
 PORTVERSION=	0.7.9b
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers
 MASTER_SITES=	http://perso.club-internet.fr/lclevy/adflib/
 DISTNAME=	adflib
@@ -17,12 +17,26 @@
 
 NO_WRKSUBDIR=	yes
 PLIST_FILES=	bin/unadf
+PORTDOCS=	API.txt api_device.html api_dir.html api_env.html api_file.html \
+		api_index.html api_native.html api_salv.html api_volume.html
 USE_ZIP=	yes
 
-pre-build:
+post-patch:
 	@${REINPLACE_CMD} -e "s@tests lib demo@lib demo@g" ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} 's|CFLAGS=-I$$(LIBDIR) -O2 -Wall -Wno-uninitialized -pedantic|CFLAGS+= -I$$(LIBDIR)|' \
+			${WRKSRC}/Demo/Makefile
+	@${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS+=|' \
+			-e 's|-Wall -O2 -pedantic||' \
+			-e 's|CC=|CC?=|' \
+			${WRKSRC}/Lib/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/Demo/unadf ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/Demo/unadf ${TARGETDIR}/bin
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+	${INSTALL_DATA} ${WRKSRC}/Docs/${i} ${DOCSDIR}
+.endfor
+.endif
 
 .include <bsd.port.mk>
--- archivers-unadf.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060811105844.99C92289C27>