177:e79a60b3a7cb | 178:7c3ff86ee9d4 |
---|---|
401 return 1 | 401 return 1 |
402 } | 402 } |
403 dependency_motif() | 403 dependency_motif() |
404 { | 404 { |
405 printf "checking for motif... " | 405 printf "checking for motif... " |
406 # dependency motif platform="bsd" | |
407 while true | |
408 do | |
409 if isnotplatform "bsd"; then | |
410 break | |
411 fi | |
412 CFLAGS="$CFLAGS -DUI_MOTIF -I/usr/local/include/X11" | |
413 LDFLAGS="$LDFLAGS -lXm -lXt -lX11 -lpthread" | |
414 echo yes | |
415 return 0 | |
416 done | |
417 | |
406 # dependency motif | 418 # dependency motif |
407 while true | 419 while true |
408 do | 420 do |
409 CFLAGS="$CFLAGS -DUI_MOTIF" | 421 CFLAGS="$CFLAGS -DUI_MOTIF" |
410 LDFLAGS="$LDFLAGS -lXm -lXt -lX11 -lpthread" | 422 LDFLAGS="$LDFLAGS -lXm -lXt -lX11 -lpthread" |
463 fi | 475 fi |
464 while true | 476 while true |
465 do | 477 do |
466 | 478 |
467 cat >> $TEMP_DIR/make.mk << __EOF__ | 479 cat >> $TEMP_DIR/make.mk << __EOF__ |
468 OBJ_EXT = o | 480 OBJ_EXT = .o |
469 LIB_EXT = a | 481 LIB_EXT = .a |
470 PACKAGE_SCRIPT = package_osx.sh | 482 PACKAGE_SCRIPT = package_osx.sh |
471 | 483 |
472 __EOF__ | 484 __EOF__ |
473 | 485 |
474 break | 486 break |
486 fi | 498 fi |
487 while true | 499 while true |
488 do | 500 do |
489 | 501 |
490 cat >> $TEMP_DIR/make.mk << __EOF__ | 502 cat >> $TEMP_DIR/make.mk << __EOF__ |
491 OBJ_EXT = o | 503 OBJ_EXT = .o |
492 LIB_EXT = a | 504 LIB_EXT = .a |
493 PACKAGE_SCRIPT = package_unix.sh | 505 PACKAGE_SCRIPT = package_unix.sh |
494 | 506 |
495 __EOF__ | 507 __EOF__ |
508 | |
509 break | |
510 done | |
511 | |
512 break | |
513 done | |
514 while true | |
515 do | |
516 if isnotplatform "bsd"; then | |
517 break | |
518 fi | |
519 while true | |
520 do | |
521 | |
522 CFLAGS="$CFLAGS -I/usr/local/include" | |
523 LDFLAGS="$LDFLAGS -L/usr/local/lib" | |
496 | 524 |
497 break | 525 break |
498 done | 526 done |
499 | 527 |
500 break | 528 break |