source: trunk/dports/devel/cryptlib/files/patch-makefile.diff @ 114713

Last change on this file since 114713 was 114713, checked in by ryandesign@…, 7 years ago

cryptlib: update to 3.4.2; write an install target for the makefile instead of overriding the destroot phase, so that we can work on adding a universal variant with the muniversal portgroup (#41804)

File size: 1.7 KB
  • makefile

    old new  
    7373# Further cc flags are gathered dynamically at runtime via the ccopts.sh
    7474# script.
    7575
    76 CFLAGS          = -c -D__UNIX__ -DNDEBUG -I.
     76CFLAGS          += -c -D__UNIX__ -DNDEBUG -I.
    7777CFLAGS_DEBUG = -c -D__UNIX__ -I. -g3 -ggdb -O0
    7878
    7979# Paths and command names.  We have to be careful with comments attached to
     
    9090SHARED_OBJ_DIR = ./shared-obj
    9191CPP                     = $(CC) -E
    9292LD                      = $(CC)
    93 LDFLAGS         =
    9493AR                      = ar
    9594STRIP           = strip
    9695SHELL           = /bin/sh
     
    14811480                                        $(STRIP) $(OBJS) $(EXTRAOBJS)
    14821481
    14831482$(DYLIBNAME):   $(OBJS) $(EXTRAOBJS) $(TESTOBJS)
    1484                                 @$(LD) -dynamiclib -compatibility_version $(MAJ).$(MIN) \
     1483                                $(LD) $(LDFLAGS) -dynamiclib -install_name $(PREFIX)/lib/$(DYLIBNAME) \
     1484                                        -compatibility_version $(MAJ).$(MIN) \
    14851485                                        -current_version $(MAJ).$(MIN).$(PLV) \
    14861486                                        -o $(DYLIBNAME) $(OBJS) $(EXTRAOBJS)
    14871487
     
    18751875#                       decide to try it.
    18761876
    18771877Darwin:
    1878         @make $(DEFINES) CFLAGS="$(CFLAGS) -fomit-frame-pointer" LDFLAGS="-object -s"
     1878        @make $(DEFINES) CFLAGS="$(CFLAGS) -fomit-frame-pointer"
    18791879
    18801880# MinGW: cc is gcc.  Note that we have to use the cross-compile flags
    18811881# XCFLAGS rather than CFLAGS because the latter implies a native Unix
     
    26572657        fi
    26582658        @if [ `uname -s` = 'CYGWIN_NT-5.0' ] ; then rm -f *.exe; fi
    26592659        @if [ `uname -s` = 'HP-UX' ] ; then rm -f lib$(PROJ).sl; fi
     2660
     2661
     2662install:
     2663        install -d $(DESTDIR)$(PREFIX)/lib
     2664        install -m 644 $(LIBNAME) $(DESTDIR)$(PREFIX)/lib
     2665        install -m 644 $(DYLIBNAME) $(DESTDIR)$(PREFIX)/lib
     2666        ln -s $(DYLIBNAME) $(DESTDIR)$(PREFIX)/lib/lib$(PROJ).dylib
     2667        install -d $(DESTDIR)$(PREFIX)/include
     2668        install -m 644 cryptlib.h $(DESTDIR)$(PREFIX)/include
Note: See TracBrowser for help on using the repository browser.