Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jun 2010 13:30:04 GMT
From:      Sunpoet Hsieh <sunpoet@sunpoet.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/144673: [PATCH] graphics/libmng: fit OPTIONS format, remove contiguous blank line
Message-ID:  <201006021330.o52DU44b037135@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/144673; it has been noted by GNATS.

From: Sunpoet Hsieh <sunpoet@sunpoet.net>
To: bug-followup@FreeBSD.org, pav@FreeBSD.org
Cc:  
Subject: Re: ports/144673: [PATCH] graphics/libmng: fit OPTIONS format, remove 
	contiguous blank line
Date: Wed, 2 Jun 2010 21:21:02 +0800

 Hi, pav@
 
 This is not just a stylish patch.
 
 Think if we define WITH_MNG_OPTIMIZE to enable libmng's optimization flags.
 Variable WITH_MNG_OPTIMIZE has been passed to files/Makefile.bsd.
 However, WITH_MNG_OPTIMIZE will not always be "true".
 You may build this port with optimization enabled by setting
 WITH_MNG_OPTIMIZE=ANYTHING_YOU_WANT or through portconf.
 e.g. a "graphics/libmng : WITH_MNG_OPTIMIZE" entry in /usr/local/etc/ports.conf
 This options is still no-op.
 
 I made a simple test here.
 A simple patch of files/Makefile.bsd is attached at the end of this mail.
 
 % make WITH_MNG_OPTIMIZE=yes
 ===>  License check disabled, port has not defined LICENSE
 ===>  Extracting for libmng-1.0.10_2
 => MD5 Checksum OK for libmng-1.0.10.tar.gz.
 => SHA256 Checksum OK for libmng-1.0.10.tar.gz.
 ===>  Patching for libmng-1.0.10_2
 ===>  Applying FreeBSD patches for libmng-1.0.10_2
 ===>   libmng-1.0.10_2 depends on shared library: jpeg - found
 ===>   libmng-1.0.10_2 depends on shared library: lcms - found
 ===>  Configuring for libmng-1.0.10_2
 ===>  Building for libmng-1.0.10_2
 "/usr/ports/sunpoet/libmng/files/Makefile.bsd", line 17: 2
 *** Error code 1
 
 Stop in /usr/ports/sunpoet/libmng.
 
 Thus, using WITH_MNG_OPTIMIZE directly is a bad idea.
 
 BTW, the NOPROFILE in files/Makefile.bsd should be changed to
 NO_PROFILE according to the following message:
 "/usr/share/mk/bsd.compat.mk", line 35: warning: NOPROFILE is
 deprecated in favour of NO_PROFILE
 
 - Sunpoet
 
 
 --- test.patch begins ---
 diff -ruN --exclude=CVS /usr/ports/graphics/libmng/files/Makefile.bsd
 /usr/ports/sunpoet/libmng/files/Makefile.bsd
 --- /usr/ports/graphics/libmng/files/Makefile.bsd       2005-10-18
 12:42:30.000000000 +0800
 +++ /usr/ports/sunpoet/libmng/files/Makefile.bsd        2010-06-02
 21:08:22.000000000 +0800
 
 @@ -9,9 +9,12 @@
 
  CFLAGS+=       -I${INCDIR}
  .if ${WITH_MNG_OPTIMIZE} == "true"
 +.error 1
  .for f in CHUNKINITFREE OBJCLEANUP CHUNKASSIGN CHUNKREADER
  CFLAGS+=       -DMNG_OPTIMIZE_$f
  .endfor
 +.else
 +.error 2
  .endif
 
  INCS=          libmng.h libmng_conf.h libmng_types.h
 --- test.patch ends ---



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