Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 23:06:32 +0000 (UTC)
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r347085 - in head/graphics/xli: . files
Message-ID:  <201403042306.s24N6WT2060601@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rm
Date: Tue Mar  4 23:06:31 2014
New Revision: 347085
URL: http://svnweb.freebsd.org/changeset/ports/347085
QAT: https://qat.redports.org/buildarchive/r347085/

Log:
  graphics/xli: actually fix staging/packaging issue
  
  - actually fix staging/packaging issue by removing desthack (it doesn't work
    for imake) and utilize DESTDIR in Imakefile instead
  - add some more missing entries into PLIST_FILES
  - bump PORTREVISION once again
  
  since I still there:
  - use DEBIAN shortcut in MASTER_SITES
  - rename files/patch-aa to files/patch-Imakefile to conform PH
  
  Reported by:    QAT (but not my poudriere)
  Submitted by:	Zhihao Yuan <lichray@gmail.com> (maintainer, by email)

Added:
  head/graphics/xli/files/patch-Imakefile
     - copied, changed from r347071, head/graphics/xli/files/patch-aa
Deleted:
  head/graphics/xli/files/patch-aa
Modified:
  head/graphics/xli/Makefile

Modified: head/graphics/xli/Makefile
==============================================================================
--- head/graphics/xli/Makefile	Tue Mar  4 23:04:41 2014	(r347084)
+++ head/graphics/xli/Makefile	Tue Mar  4 23:06:31 2014	(r347085)
@@ -3,9 +3,9 @@
 
 PORTNAME=	xli
 PORTVERSION=	1.17.0
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	graphics
-MASTER_SITES=	${MASTER_SITE_DEBIAN}
+MASTER_SITES=	DEBIAN
 MASTER_SITE_SUBDIR=	pool/main/x/${PORTNAME}
 DISTNAME=	xli_${PORTVERSION}+${XLI_SNAPVER:C/-//g}.orig
 
@@ -17,15 +17,20 @@ LIB_DEPENDS=	libpng15.so:${PORTSDIR}/gra
 
 CONFLICTS_INSTALL=	xloadimage-*
 
-USES=		imake desthack
+USES=		imake
 USE_XORG=	xi
 WRKSRC=		${WRKDIR}/xli-${XLI_SNAPVER}
 
+PLIST_FILES=	bin/xli bin/xlito bin/xview bin/xsetbg \
+		lib/X11/app-defaults/Xli man/man1/xli.1.gz \
+		man/man1/xlito.1.gz man/man1/xview.1.gz man/man1/xsetbg.1.gz
+
 XLI_SNAPVER=	2006-11-10
 
-PLIST_FILES=	bin/xli \
-		bin/xlito \
-		man/man1/xli.1.gz \
-		man/man1/xlito.1.gz
+post-install:
+	${LN} -s ${MANPREFIX}/man/man1/xli.1.gz \
+		${STAGEDIR}${MANPREFIX}/man/man1/xview.1.gz
+	${LN} -s ${MANPREFIX}/man/man1/xli.1.gz \
+		${STAGEDIR}${MANPREFIX}/man/man1/xsetbg.1.gz
 
 .include <bsd.port.mk>

Copied and modified: head/graphics/xli/files/patch-Imakefile (from r347071, head/graphics/xli/files/patch-aa)
==============================================================================
--- head/graphics/xli/files/patch-aa	Tue Mar  4 20:52:09 2014	(r347071, copy source)
+++ head/graphics/xli/files/patch-Imakefile	Tue Mar  4 23:06:31 2014	(r347085)
@@ -1,6 +1,6 @@
---- Imakefile--	Mon Mar 26 11:31:28 2001
-+++ Imakefile	Mon Mar 26 11:32:04 2001
-@@ -12,8 +12,8 @@
+--- Imakefile.orig	2006-11-11 00:52:14.000000000 -0500
++++ Imakefile	2014-03-04 16:46:47.791670751 -0500
+@@ -13,17 +13,17 @@
        CCOPTIONS = -Aa -D_HPUX_SOURCE
  #endif
  
@@ -11,7 +11,9 @@
  
  PNG_INCLUDES = 
  PNG_LDFLAGS = 
-@@ -22,7 +22,7 @@
+ 
+-SYSPATHFILE = $(XAPPLOADDIR)/Xli
++SYSPATHFILE = $(DESTDIR)$(XAPPLOADDIR)/Xli
  DEPLIBS = $(DEPXLIB)
  LOCAL_LIBRARIES = $(XLIB) $(JPEG_LDFLAGS) $(PNG_LDFLAGS) -ljpeg -lpng -lz
  SYS_LIBRARIES = -lm
@@ -20,7 +22,19 @@
  EXTRA_INCLUDES = $(JPEG_INCLUDES) $(PNG_INCLUDES)
  
  SRCS1 = bright.c clip.c cmuwmrast.c compress.c dither.c faces.c fbm.c fill.c  g3.c gif.c halftone.c imagetypes.c img.c mac.c mcidas.c mc_tables.c merge.c misc.c new.c options.c path.c pbm.c pcx.c reduce.c jpeg.c rle.c rlelib.c root.c rotate.c send.c smooth.c sunraster.c  value.c window.c xbitmap.c xli.c xpixmap.c xwd.c zio.c zoom.c ddxli.c tga.c bmp.c pcd.c png.c
-@@ -47,7 +47,7 @@
+@@ -37,9 +37,8 @@ ComplexProgramTarget_1(xli,$(DEFINES) $(
+ ComplexProgramTarget_2(xlito,,)
+ 
+ install:: $(SYSPATHFILE)
+-	$(RM) $(BINDIR)/xview $(BINDIR)/xsetbg
+-	$(LN) $(BINDIR)/xli $(BINDIR)/xview
+-	$(LN) $(BINDIR)/xli $(BINDIR)/xsetbg
++	$(LN) $(BINDIR)/xli $(DESTDIR)$(BINDIR)/xview
++	$(LN) $(BINDIR)/xli $(DESTDIR)$(BINDIR)/xsetbg
+ 
+ $(SYSPATHFILE):
+ 	@echo "*** Creating default $(SYSPATHFILE) since you"
+@@ -48,7 +47,7 @@ $(SYSPATHFILE):
  	@echo "*** it for your site.  See the xloadimage manual page for"
  	@echo "*** details on the contents of this file."
  	cp /dev/null $(SYSPATHFILE)



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