Ticket #29123: AntTweakBar-install_name.diff

File AntTweakBar-install_name.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • files/ATB_114_mac.patch

     
    1717 #LFLAGS                = -arch i386 -arch x86_64
    1818 #OUT_DIR       = ../lib/debug
    1919 
    20 +PREFIX         = usr/local/
    21 +DESTDIR                = /
     20+PREFIX         = /usr/local
     21+DESTDIR                =
    2222+
    2323 #BASE          = /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
    2424 CXX            = gcc
     
    3535+install: $(TARGET) Makefile
    3636+       mkdir -p $(DESTDIR)$(PREFIX)/lib/
    3737+       $(COPY) $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(DESTDIR)$(PREFIX)/lib/
    38 +       mkdir -p $(DESTDIR)$(PREFIX)include/
     38+       mkdir -p $(DESTDIR)$(PREFIX)/include/
    3939+       $(COPY) ../include/AntTweakBar.h $(DESTDIR)$(PREFIX)/include/
    4040 
    4141 $(TARGET): $(OBJS)
    4242        @echo "===== Link $@ ====="
    4343-       $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS)
    44 +       $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS) -install_name /$(PREFIX)/lib/lib$(TARGET)$(SO_EXT)
     44+       $(LINK) $(LFLAGS) -dynamiclib -Wl,-undefined -Wl,dynamic_lookup  -o $(OUT_DIR)/lib$(TARGET)$(SO_EXT) $(OBJS) $(LIBS) -install_name $(PREFIX)/lib/lib$(TARGET)$(SO_EXT)
    4545 
    4646 .cpp.o:
    4747        @echo "===== Compile $< ====="
  • Portfile

     
    33PortSystem          1.0
    44name                AntTweakBar
    55version             1.14
     6revision            1
    67categories          graphics
    78maintainers         karcaw@gmail.com
    89description         Graphics Library for graphical user interface