~ubuntu-branches/ubuntu/raring/wxwidgets2.8/raring

« back to all changes in this revision

Viewing changes to src/png/scripts/makefile.atari

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-01-07 13:59:25 UTC
  • mfrom: (1.1.9) (5.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20120107135925-2601miy9ullcon9j
Tags: 2.8.12.1-6ubuntu1
* Resync from Debian, changes that were kept:
  - debian/rules: re-enable mediactrl. This allows libwx_gtk2u_media-2.8 to be
    built, as this is required by some applications (LP: #632984)
  - debian/control: Build-dep on libxt-dev for mediactrl.
  - Patches
    + fix-bashism-in-example
* Add conflict on python-wxgtk2.8 (<< 2.8.12.1-6ubuntu1~) to python-wxversion
  to guarantee upgrade ordering when moving from pycentral to dh_python2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# makefile for libpng
2
 
# Copyright (C) 2002 Glenn Randers-Pehrson
3
 
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
4
 
# For conditions of distribution and use, see copyright notice in png.h
5
 
# modified for LC56/ATARI assumes libz.lib is in same dir and uses default
6
 
# rules for library management
7
 
#
8
 
CFLAGS=-I..\zlib -O
9
 
LBR = png.lib
10
 
LDFLAGS=-lpng -lz -lm
11
 
 
12
 
# where make install puts libpng.a and png.h
13
 
prefix=/usr/local
14
 
INCPATH=$(prefix)/include
15
 
LIBPATH=$(prefix)/lib
16
 
 
17
 
# override DESTDIR= on the make install command line to easily support
18
 
# installing into a temporary location.  Example:
19
 
#
20
 
#    make install DESTDIR=/tmp/build/libpng
21
 
#
22
 
# If you're going to install into a temporary location
23
 
# via DESTDIR, $(DESTDIR)$(prefix) must already exist before
24
 
# you execute make install.
25
 
DESTDIR=
26
 
 
27
 
OBJS = $(LBR)(png.o) $(LBR)(pngset.o) $(LBR)(pngget.o) $(LBR)(pngrutil.o)\
28
 
        $(LBR)(pngtrans.o) $(LBR)(pngwutil.o)\
29
 
        $(LBR)(pngread.o) $(LBR)(pngerror.o) $(LBR)(pngwrite.o)\
30
 
        $(LBR)(pngrtran.o) $(LBR)(pngwtran.o)\
31
 
        $(LBR)(pngmem.o) $(LBR)(pngrio.o) $(LBR)(pngwio.o) $(LBR)(pngpread.o)
32
 
 
33
 
all: $(LBR) pngtest.ttp
34
 
 
35
 
$(LBR): $(OBJS)
36
 
 
37
 
pngtest.ttp: pngtest.o $(LBR)
38
 
        $(CC) $(CFLAGS) $(LDFLAGS) -o$@ pngtest.o
39
 
 
40
 
install: libpng.a
41
 
        -@mkdir $(DESTDIR)$(INCPATH)
42
 
        -@mkdir $(DESTDIR)$(INCPATH)/libpng
43
 
        -@mkdir $(DESTDIR)$(LIBPATH)
44
 
        -@rm -f $(DESTDIR)$(INCPATH)/png.h
45
 
        -@rm -f $(DESTDIR)$(INCPATH)/pngconf.h
46
 
        cp png.h $(DESTDIR)$(INCPATH)/libpng
47
 
        cp pngconf.h $(DESTDIR)$(INCPATH)/libpng
48
 
        chmod 644 $(DESTDIR)$(INCPATH)/libpng/png.h
49
 
        chmod 644 $(DESTDIR)$(INCPATH)/libpng/pngconf.h
50
 
        (cd $(DESTDIR)$(INCPATH); ln -f -s $(LIBNAME) libpng; \
51
 
        ln -f -s $(LIBNAME)/* .)