ports/graphics/openjpeg/files/patch-Makefile
Martin Wilke a093780d07 The OpenJPEG library is an open-source JPEG 2000 codec written in
C language.  It has been developed in order to promote the use of
JPEG 2000, the new still-image compression standard from the Joint
Photographic Experts Group (JPEG).  In addition to the basic codec,
various other features are under development, among them the JP2
and MJ2 (Motion JPEG 2000) file formats, an indexing tool useful
for the JPIP protocol, JPWL-tools for error-resilience, a Java-viewer
for j2k-images, ...

WWW:	http://www.openjpeg.org/

PR:		ports/107868
Submitted by:	trasz <trasz at pin.if.uz.zgora.pl>
2007-01-13 21:39:14 +00:00

33 lines
861 B
Text

--- Makefile.orig Wed Feb 1 22:25:11 2006
+++ Makefile Sat Jan 13 12:52:47 2007
@@ -8,15 +8,13 @@
INCLUDE = -Ilibopenjpeg
# General configuration variables:
-CC = gcc
-AR = ar
-INSTALLDIR = /usr/lib
+INSTALLDIR = $(PREFIX)/lib
# Converts cr/lf to just lf
DOS2UNIX = dos2unix
-COMPILERFLAGS = -O3
+COMPILERFLAGS := $(CFLAGS)
LIBRARIES = -lstdc++
MODULES = $(SRCS:.c=.o)
@@ -54,10 +52,9 @@
$(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES)
install:
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
+ install -m 644 -o 0 -g 0 $(STATICLIB) $(INSTALLDIR)
+ install -m 755 -o 0 -g 0 $(SHAREDLIB) $(INSTALLDIR)
ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
- ldconfig
clean:
rm -rf core dist/ u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)